Function at 0x45cc9f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a34b2
mov eax, dword fs:[0]
push eax
sub esp, 0x3f8
push ebx
push esi
push edi
mov eax, dword [0x4dc0a8]
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.0045d594
xor edi, edi
mov dword [esi], edi
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45d0cd
mov ebx, dword [ebx]
push 0x4ba3d8
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 0x45d0cd
lea eax, [esp + 0x28c]
call fcn.004616f1
mov dword [esp + 0x410], edi
mov ebx, dword [esp + 0x18]
call fcn.004618db
push dword [esp + 0x18]
mov edi, eax
call dword [sym.imp.MSVCR80.dll_fclose]
test edi, edi
pop ecx
lea eax, [esp + 0x28c]
jne 0x45d0bf
push edi
call fcn.0045cbdf
mov edi, eax
test edi, edi
je 0x45d0b8
add esi, 4
push esi
push 0x4ba3e0
call fcn.0045cc6d
push str.config
mov eax, edi
call fcn.0045cbdf
test eax, eax
mov dword [esp + 0x1c], eax
je 0x45d0b8
mov eax, dword [0x4e0530]
mov ecx, 0x4e0530
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x410], 1
call fcn.0046539e
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 0x45cfcb
lea ebx, [esi + 4]
call fcn.0046075e
mov ebx, eax
mov eax, esi
call fcn.00461232
test ebx, ebx
mov dword [esp + 0x24], eax
je 0x45cfc8
test eax, eax
je 0x45cfc8
lea eax, [esp + 0x88]
mov edi, 0xfde9
push edi
mov dword [esp + 0x88], eax
push ebx
lea eax, [esp + 0x8c]
push eax
call fcn.00405167
mov byte [esp + 0x410], 3
push dword [esp + 0x84]
lea eax, [esp + 0x18]
push eax
call fcn.00405f0e
lea eax, [esp + 0x88]
mov byte [esp + 0x410], 5
cmp dword [esp + 0x84], eax
je 0x45ce60
push dword [esp + 0x84]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
lea eax, [esp + 0x14]
call fcn.00423349
push edi
push dword [esp + 0x28]
lea eax, [esp + 0x194]
mov dword [esp + 0x190], eax
lea eax, [esp + 0x190]
push eax
call fcn.00405167
mov byte [esp + 0x410], 6
push dword [esp + 0x188]
lea eax, [esp + 0x2c]
push eax
call fcn.00405f0e
lea eax, [esp + 0x18c]
mov byte [esp + 0x410], 8
cmp dword [esp + 0x188], eax
je 0x45cec8
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.0043fd90
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
mov edi, eax
mov byte [esp + 0x414], 0xa
call fcn.0043fde9
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x30]
push eax
lea ebx, [esp + 0x80]
mov byte [esp + 0x418], 0xb
call fcn.00408b23
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 0x4ba3fc
push dword [esp + 0x18]
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x45cfa8
lea eax, [esp + 0x28]
lea edi, [esp + 0x20]
call fcn.00404347
mov eax, edi
call fcn.00423349
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 0x45cdda
sub esp, 0xc
mov dword [esp + 0x44], esp
mov eax, esp
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.0043e6e9
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.0045dbbc
add esp, 0x14
lea ecx, [esp + 0x4c]
push ecx
mov ecx, eax
mov byte [esp + 0x414], 0xd
call fcn.0045dc1b
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.0045d4d2
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x414], 0xd
call fcn.0045d112
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x414], 2
call fcn.0045d0e5
mov eax, dword [esp + 0x1c]
push str.config
call fcn.0045cc26
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x410], 1
call fcn.004082c5
mov eax, edi
mov byte [esp + 0x410], 0
call fcn.004012f9
cmp dword [esp + 0x1c], esi
jne 0x45cd84
mov eax, dword [ebp + 8]
mov dword [eax], 1
lea eax, [esp + 0x28c]
or dword [esp + 0x410], 0xffffffff
push eax
call fcn.00461817
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