Function at 0x4100b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426f40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
push ebx
push esi
push edi
xor esi, esi
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x268]
mov dword [ebp - 0x26c], esi
rep stosd dword es:[edi], eax
push 0x4306d8
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], esi
call sub.MFC42u.DLL_CString::CString_2
push 0x4306d8
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call sub.MFC42u.DLL_CString::CString_2
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
cmp dword [eax + 0x1c], esi
je 0x4105b7
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x430894]
test eax, eax
mov esi, dword [ecx]
jne 0x410130
call fcn.0040f910
mov dword [0x430894], eax
mov ecx, dword [eax + 0x11c]
test ecx, ecx
je 0x41015a
test eax, eax
jne 0x410148
call fcn.0040f910
mov dword [0x430894], eax
mov ecx, dword [eax + 0x11c]
test ecx, ecx
je 0x41015a
mov eax, dword [eax + 0x80]
jmp 0x41015c
xor eax, eax
test eax, eax
push esi
je 0x410165
call eax
jmp 0x41016b
call dword [0x4285d0]
test eax, eax
je 0x4105b7
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
mov ax, word [eax + ecx*2 - 2]
cmp ax, 0x2e
jne 0x41019b
call fcn.0040ede0
test eax, eax
jne 0x41019b
push 0x42e468
mov ecx, esi
call fcn.0041ec0e
mov edx, dword [esi]
lea eax, [ebp - 0x18]
push edx
push str._s.
push eax
call sub.MFC42u.DLL_CString::Format
mov eax, dword [0x430894]
mov esi, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
jne 0x4101c5
call fcn.0040f910
mov dword [0x430894], eax
mov ecx, dword [eax + 0x11c]
mov ebx, dword [0x428088]
test ecx, ecx
mov edi, 2
je 0x41022c
test eax, eax
jne 0x41021d
push eax
push 1
push 0x430890
call dword [0x428084]
test eax, eax
jne 0x4101fd
call fcn.0040fcd0
mov dword [0x430890], edi
jmp 0x410218
mov eax, dword [0x430890]
cmp eax, edi
je 0x410213
push 1
call ebx
mov eax, dword [0x430890]
cmp eax, edi
jne 0x410206
call fcn.0040fcd0
mov dword [0x430894], eax
mov ecx, dword [eax + 0x11c]
test ecx, ecx
je 0x41022c
mov eax, dword [eax + 0x5c]
jmp 0x41022e
xor eax, eax
test eax, eax
je 0x41023e
lea ecx, [ebp - 0x26c]
push ecx
push esi
call eax
jmp 0x41024c
lea edx, [ebp - 0x26c]
push edx
push esi
call dword [0x4280b0]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4105b7
call fcn.0040ed90
test eax, eax
jne 0x410439
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x240]
push 0x42e468
push eax
call esi
add esp, 8
test eax, eax
je 0x410393
lea ecx, [ebp - 0x240]
push 0x42e454
push ecx
call esi
add esp, 8
test eax, eax
je 0x410393
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x240]
push edx
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
push ecx
push str._s_s
push edx
call sub.MFC42u.DLL_CString::Format
mov al, byte [ebp - 0x26c]
add esp, 0x10
test al, 0x10
je 0x41032a
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp word [ebp + eax*2 - 0x242], 0x2e
jne 0x410306
call fcn.0040ede0
test eax, eax
jne 0x410306
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x10]
mov eax, dword [edx]
push eax
push str._s_s.
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
push 0x42e450
lea ecx, [ebp - 0x10]
call fcn.0041ec0e
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
push ecx
push edx
call fcn.004100b0
jmp 0x410393
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4280e8]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ebx, eax
jne 0x410341
xor esi, esi
jmp 0x410370
push eax
call dword [0x42808c]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0041f210
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [esi], 0
call dword [0x428080]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ecx
push edx
push esi
call dword [eax + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
mov ebx, dword [0x428088]
add esp, 0xc
mov edi, 2
mov eax, dword [0x430894]
test eax, eax
jne 0x4103a6
call fcn.0040f910
mov dword [0x430894], eax
mov ecx, dword [eax + 0x11c]
test ecx, ecx
je 0x410402
test eax, eax
jne 0x4103f3
push eax
push 1
push 0x430890
call dword [0x428084]
test eax, eax
jne 0x4103d3
call fcn.0040fcd0
mov dword [0x430890], edi
jmp 0x4103ee
mov eax, dword [0x430890]
cmp eax, edi
je 0x4103e9
push 1
call ebx
mov eax, dword [0x430890]
cmp eax, edi
jne 0x4103dc
call fcn.0040fcd0
mov dword [0x430894], eax
mov ecx, dword [eax + 0x11c]
test ecx, ecx
je 0x410402
mov eax, dword [eax + 0x64]
jmp 0x410404
xor eax, eax
test eax, eax
je 0x410417
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x26c]
push ecx
push edx
call eax
jmp 0x410428
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x26c]
push eax
push ecx
call dword [0x4280b4]
test eax, eax
je 0x410442
call fcn.0040ed90
test eax, eax
je 0x41026a
mov dword [ebp - 0x1c], 1
jmp 0x4104a2
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx]
test ebx, ebx
jne 0x41044f
xor esi, esi
jmp 0x410483
push ebx
call dword [0x42808c]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0041f210
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [esi], 0
call dword [0x428080]
mov edi, 2
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push eax
push ecx
push esi
call dword [edx + 0x10]
mov ebx, dword [0x428088]
add esp, 0xc
mov dword [ebp - 0x1c], 1
mov eax, dword [0x430894]
test eax, eax
jne 0x4104ea
push eax
push 1
push 0x430890
call dword [0x428084]
test eax, eax
jne 0x4104ca
call fcn.0040fcd0
mov dword [0x430890], edi
jmp 0x4104e5
mov eax, dword [0x430890]
cmp eax, edi
je 0x4104e0
push 1
call ebx
mov eax, dword [0x430890]
cmp eax, edi
jne 0x4104d3
call fcn.0040fcd0
mov dword [0x430894], eax
mov ecx, dword [eax + 0x11c]
test ecx, ecx
je 0x41059f
test eax, eax
jne 0x410590
push eax
push 1
push 0x430890
call dword [0x428084]
test eax, eax
jne 0x410545
mov al, byte [0x430b41]
test al, 1
jne 0x41053d
mov dl, al
mov ecx, 0x430b60
or dl, 1
mov byte [0x430b41], dl
call fcn.0040fc90
push 0x40fa00
call fcn.0041f1ec
add esp, 4
mov dword [0x430890], edi
jmp 0x410586
mov eax, dword [0x430890]
cmp eax, edi
je 0x41055b
push 1
call ebx
mov eax, dword [0x430890]
cmp eax, edi
jne 0x41054e
mov al, byte [0x430b41]
test al, 1
jne 0x410586
mov dl, al
mov ecx, 0x430b60
or dl, 1
mov byte [0x430b41], dl
call fcn.0040fc90
push 0x40fa00
call fcn.0041f1ec
add esp, 4
mov eax, 0x430b60
mov dword [0x430894], eax
mov ecx, dword [eax + 0x11c]
test ecx, ecx
je 0x41059f
mov eax, dword [eax + 0x68]
jmp 0x4105a1
xor eax, eax
test eax, eax
je 0x4105ad
mov ecx, dword [ebp - 0x14]
push ecx
call eax
jmp 0x4105b7
mov edx, dword [ebp - 0x14]
push edx
call dword [0x4280bc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [eax]
push eax
call fcn.00410600
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x278]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10