Function at 0x4609b1
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f6a0d
mov eax, dword fs:[0]
push eax
sub esp, 0x3f8
push ebx
push esi
push edi
mov eax, dword [0x54b0c4]
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.004612e6
xor edi, edi
mov dword [esi], edi
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x460ddf
mov ebx, dword [ebx]
push 0x50f630
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 0x460ddf
lea eax, [esp + 0x28c]
call fcn.004655da
mov dword [esp + 0x410], edi
mov ebx, dword [esp + 0x18]
call fcn.004657b2
push dword [esp + 0x18]
mov edi, eax
call dword [sym.imp.MSVCR80.dll_fclose]
test edi, edi
pop ecx
lea eax, [esp + 0x28c]
jne 0x460dd1
push edi
call fcn.004608f1
mov edi, eax
test edi, edi
je 0x460dca
add esi, 4
push esi
push 0x50f638
call fcn.0046097f
push 0x50f64c
mov eax, edi
call fcn.004608f1
test eax, eax
mov dword [esp + 0x1c], eax
je 0x460dca
mov eax, dword [0x550310]
mov ecx, 0x550310
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x410], 1
call fcn.0048214a
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 0x460cdd
lea ebx, [esi + 4]
call fcn.00464656
mov ebx, eax
mov eax, esi
call fcn.0046511b
test ebx, ebx
mov dword [esp + 0x24], eax
je 0x460cda
test eax, eax
je 0x460cda
lea eax, [esp + 0x88]
mov edi, 0xfde9
push edi
mov dword [esp + 0x88], eax
push ebx
lea eax, [esp + 0x8c]
push eax
call fcn.00405fd8
mov byte [esp + 0x410], 3
push dword [esp + 0x84]
lea eax, [esp + 0x18]
push eax
call fcn.00402d09
lea eax, [esp + 0x88]
mov byte [esp + 0x410], 5
cmp dword [esp + 0x84], eax
je 0x460b72
push dword [esp + 0x84]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
lea eax, [esp + 0x14]
call fcn.00423a6f
push edi
push dword [esp + 0x28]
lea eax, [esp + 0x194]
mov dword [esp + 0x190], eax
lea eax, [esp + 0x190]
push eax
call fcn.00405fd8
mov byte [esp + 0x410], 6
push dword [esp + 0x188]
lea eax, [esp + 0x2c]
push eax
call fcn.00402d09
lea eax, [esp + 0x18c]
mov byte [esp + 0x410], 8
cmp dword [esp + 0x188], eax
je 0x460bda
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.004401c2
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
mov edi, eax
mov byte [esp + 0x414], 0xa
call fcn.0044021b
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x30]
push eax
lea ebx, [esp + 0x80]
mov byte [esp + 0x418], 0xb
call fcn.0040980c
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 0x50f654
push dword [esp + 0x18]
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x460cba
lea eax, [esp + 0x28]
lea edi, [esp + 0x20]
call fcn.00402a90
mov eax, edi
call fcn.00423a6f
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 0x460aec
sub esp, 0xc
mov dword [esp + 0x44], esp
mov eax, esp
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.0043eda0
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.0046190e
add esp, 0x14
lea ecx, [esp + 0x4c]
push ecx
mov ecx, eax
mov byte [esp + 0x414], 0xd
call fcn.0046196d
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.00461224
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x414], 0xd
call fcn.00460e24
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x414], 2
call fcn.00460df7
mov eax, dword [esp + 0x1c]
push 0x50f64c
call fcn.00460938
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x410], 1
call fcn.004029c5
mov eax, edi
mov byte [esp + 0x410], 0
call fcn.004012f9
cmp dword [esp + 0x1c], esi
jne 0x460a96
mov eax, dword [ebp + 8]
mov dword [eax], 1
lea eax, [esp + 0x28c]
or dword [esp + 0x410], 0xffffffff
push eax
call fcn.004656ee
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