Function at 0x4626d8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fd8bd
mov eax, dword fs:[0]
push eax
sub esp, 0x3f8
push ebx
push esi
push edi
mov eax, dword [0x5550ec]
xor eax, esp
push eax
lea eax, [esp + 0x408]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea edi, [esi + 8]
call fcn.0046300d
xor edi, edi
mov dword [esi], edi
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x462b06
mov ebx, dword [ebx]
push 0x517db0
lea eax, [esp + 0x1c]
push ebx
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.MSVCR80.dll__wfopen_s]
add esp, 0xc
cmp dword [esp + 0x18], edi
je 0x462b06
lea eax, [esp + 0x28c]
call fcn.0046791b
mov dword [esp + 0x410], edi
mov ebx, dword [esp + 0x18]
call fcn.00467af3
push dword [esp + 0x18]
mov edi, eax
call dword [sym.imp.MSVCR80.dll_fclose]
test edi, edi
pop ecx
lea eax, [esp + 0x28c]
jne 0x462af8
push edi
call fcn.00462618
mov edi, eax
test edi, edi
je 0x462af1
add esi, 4
push esi
push 0x517db8
call fcn.004626a6
push 0x517dcc
mov eax, edi
call fcn.00462618
test eax, eax
mov dword [esp + 0x1c], eax
je 0x462af1
mov eax, dword [0x55a320]
mov ecx, 0x55a320
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x410], 1
call fcn.00484291
mov dword [esp + 0x30], eax
mov byte [eax + 0x15], 1
mov eax, dword [esp + 0x30]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x30]
mov dword [eax], eax
mov eax, dword [esp + 0x30]
mov dword [eax + 8], eax
and dword [esp + 0x34], 0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x410], 2
mov esi, dword [eax + 0x30]
jmp 0x462a04
lea ebx, [esi + 4]
call fcn.00466997
mov ebx, eax
mov eax, esi
call fcn.0046745c
test ebx, ebx
mov dword [esp + 0x24], eax
je 0x462a01
test eax, eax
je 0x462a01
lea eax, [esp + 0x88]
mov edi, 0xfde9
push edi
mov dword [esp + 0x88], eax
push ebx
lea eax, [esp + 0x8c]
push eax
call fcn.004062ed
mov byte [esp + 0x410], 3
push dword [esp + 0x84]
lea eax, [esp + 0x18]
push eax
call fcn.00402cc5
lea eax, [esp + 0x88]
mov byte [esp + 0x410], 5
cmp dword [esp + 0x84], eax
je 0x462899
push dword [esp + 0x84]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
lea eax, [esp + 0x14]
call fcn.0042407f
push edi
push dword [esp + 0x28]
lea eax, [esp + 0x194]
mov dword [esp + 0x190], eax
lea eax, [esp + 0x190]
push eax
call fcn.004062ed
mov byte [esp + 0x410], 6
push dword [esp + 0x188]
lea eax, [esp + 0x2c]
push eax
call fcn.00402cc5
lea eax, [esp + 0x18c]
mov byte [esp + 0x410], 8
cmp dword [esp + 0x188], eax
je 0x462901
push dword [esp + 0x188]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov eax, dword [esp + 0x28]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov edi, esp
call fcn.00401311
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x414], 9
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x40], esp
mov edi, esp
call fcn.00401311
add eax, 0x10
mov dword [edi], eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x41c], 8
call fcn.00441993
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
mov edi, eax
mov byte [esp + 0x414], 0xa
call fcn.004419ec
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x30]
push eax
lea ebx, [esp + 0x80]
mov byte [esp + 0x418], 0xb
call fcn.00409b2b
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
call fcn.004012f9
mov byte [esp + 0x410], 8
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
call fcn.004012f9
push 0x517dd4
push dword [esp + 0x18]
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x4629e1
lea eax, [esp + 0x28]
lea edi, [esp + 0x20]
call fcn.00402a4c
mov eax, edi
call fcn.0042407f
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.004012f9
mov byte [esp + 0x410], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004012f9
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x462813
sub esp, 0xc
mov dword [esp + 0x44], esp
mov eax, esp
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.0044013a
mov byte [esp + 0x41c], 0xc
mov edi, dword [esp + 0x2c]
push ecx
add edi, 0xfffffff0
mov eax, edi
mov dword [esp + 0x34], esp
mov ebx, esp
call fcn.00401311
add eax, 0x10
mov dword [ebx], eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0x424], 2
call fcn.004636b7
add esp, 0x14
lea ecx, [esp + 0x4c]
push ecx
mov ecx, eax
mov byte [esp + 0x414], 0xd
call fcn.00463716
lea eax, [esp + 0x4c]
push eax
mov eax, dword [ebp + 8]
add eax, 8
push eax
lea ebx, [esp + 0x74]
mov byte [esp + 0x418], 0xe
call fcn.00462f4b
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x414], 0xd
call fcn.00462b4b
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x414], 2
call fcn.00462b1e
mov eax, dword [esp + 0x1c]
push 0x517dcc
call fcn.0046265f
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x410], 1
call fcn.00402981
mov eax, edi
mov byte [esp + 0x410], 0
call fcn.004012f9
cmp dword [esp + 0x1c], esi
jne 0x4627bd
mov eax, dword [ebp + 8]
mov dword [eax], 1
lea eax, [esp + 0x28c]
or dword [esp + 0x410], 0xffffffff
push eax
call fcn.00467a2f
mov ecx, dword [esp + 0x408]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4