Function at 0x425dc0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4385c8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
mov ebp, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x425e46
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov esi, dword [esp + 0x44]
lea edx, [esp + 0xc]
xor ebx, ebx
push edx
mov eax, dword [esi + 8]
mov ecx, esi
push eax
mov dword [esp + 0x40], ebx
call fcn.00426430
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esi + 4]
cmp ecx, ebx
jne 0x426143
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 8
mov esi, dword [esp + 0x44]
push edi
xor ebx, ebx
mov eax, dword [esp + 0x44]
mov ecx, ebp
push eax
mov dword [esp + 0x1c], 0xffff
call fcn.00425ae0
mov dword [esp + 0x44], eax
mov cx, word [eax]
cmp cx, bx
je 0x426125
mov edx, ecx
and edx, 0xffff
sub edx, 0x22
je 0x426085
sub edx, 0xb
je 0x42606d
sub edx, 2
je 0x42606d
mov cl, byte [esp + 0x44]
mov edi, eax
mov dword [esp + 0x1c], edi
mov byte [esp + 0x24], cl
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push eax
mov ecx, ebp
mov dword [esp + 0x40], 1
call fcn.00425ba0
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x44]
mov ecx, ebp
push edx
call fcn.00425b40
mov dword [esp + 0x44], eax
sub eax, edi
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x50]
call fcn.0042a49e
mov eax, dword [esi + 4]
mov byte [esp + 0x3c], 2
cmp eax, ebx
je 0x425f05
mov ecx, dword [esi + 8]
sub ecx, eax
test ecx, 0xfffffffc
je 0x425f05
mov edx, dword [esp + 0x48]
mov eax, dword [eax]
push esi
push edx
push eax
jmp 0x425f0c
mov eax, dword [esp + 0x48]
push esi
push eax
push ebx
mov ecx, ebp
call fcn.00425c00
cmp eax, ebx
jne 0x425fff
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x425fad
mov ecx, dword [esp + 0x2c]
sub ecx, eax
test ecx, 0xfffffffc
je 0x425fad
xor edi, edi
cmp eax, ebx
je 0x425fa9
mov edx, dword [esp + 0x2c]
sub edx, eax
sar edx, 2
cmp edi, edx
jae 0x425fa9
mov eax, dword [eax + edi*4]
mov ecx, dword [esp + 0x44]
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0042a49e
mov eax, dword [esi + 4]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x425f82
mov edx, dword [esi + 8]
sub edx, eax
test edx, 0xfffffffc
je 0x425f82
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push esi
push ecx
push eax
jmp 0x425f89
mov edx, dword [esp + 0x10]
push esi
push edx
push ebx
mov ecx, ebp
call fcn.00425c00
cmp eax, ebx
mov byte [esp + 0x3c], 2
lea ecx, [esp + 0x10]
jne 0x425ffa
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x28]
inc edi
jmp 0x425f37
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
cmp word [eax], bx
je 0x426033
mov ecx, dword [esp + 0x20]
add eax, 2
cmp eax, ecx
mov dword [esp + 0x44], eax
jae 0x426050
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x44]
push eax
push 1
push ecx
lea ecx, [esp + 0x30]
call fcn.004241d0
mov edx, dword [esp + 0x44]
mov byte [esp + 0x3c], 1
lea ecx, [esp + 0x48]
cmp word [edx], bx
je 0x426008
call sub.MFC42.DLL_CString::CString
jmp 0x425ec2
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x3c], 1
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
push eax
call fcn.0042a030
add esp, 4
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
jmp 0x426105
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
push ecx
jmp 0x42601a
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
push edx
jmp 0x42601a
add eax, 2
mov ecx, ebp
push eax
mov dword [esp + 0x48], eax
call fcn.00425b40
mov dword [esp + 0x44], eax
jmp 0x426105
add eax, 2
mov edi, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x18], edi
mov cx, word [eax]
mov edx, eax
cmp cx, bx
je 0x4260b0
cmp cx, di
je 0x4260b0
add eax, 2
mov dword [esp + 0x44], eax
mov cx, word [eax]
cmp cx, bx
jne 0x42609c
sub eax, edx
lea ecx, [esp + 0x14]
sar eax, 1
push eax
push edx
call fcn.0042a49e
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], 4
cmp eax, ebx
je 0x4260e6
mov ecx, dword [esi + 8]
sub ecx, eax
test ecx, 0xfffffffc
je 0x4260e6
mov edx, dword [esp + 0x14]
mov eax, dword [eax]
push esi
push edx
push eax
jmp 0x4260ed
mov eax, dword [esp + 0x14]
push esi
push eax
push ebx
mov ecx, ebp
call fcn.00425c00
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x44]
mov cx, word [esp + 0x18]
cmp cx, word [edx]
jne 0x425e4d
mov eax, edx
add eax, 2
mov dword [esp + 0x44], eax
jmp 0x425e4d
mov ecx, dword [esi + 4]
pop edi
cmp ecx, ebx
jne 0x426143
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 8
mov eax, dword [esi + 8]
pop esi
sub eax, ecx
mov ecx, dword [esp + 0x2c]
pop ebp
pop ebx
sar eax, 2
mov dword fs:[0], ecx
add esp, 0x30
ret 8