Function at 0x406554
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x2a4
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
lea edx, [ebp - 0x284]
mov eax, 0
mov ecx, 0x94
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [esp + 4], 1
mov dword [esp], 0x41b334
call fcn.00403ba7
mov dword [esp + 8], 0
mov dword [esp + 4], 0x8eda41fa
mov dword [esp], eax
call fcn.00403a28
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x406893
mov dword [esp + 4], 1
mov dword [esp], 0x41b334
call fcn.00403ba7
mov dword [esp + 8], 0
mov dword [esp + 4], 0xbf0c31db
mov dword [esp], eax
call fcn.00403a28
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x406896
mov dword [esp + 4], 1
mov dword [esp], 0x41b334
call fcn.00403ba7
mov dword [esp + 8], 0
mov dword [esp + 4], 0xd2503add
mov dword [esp], eax
call fcn.00403a28
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x406899
mov dword [esp + 4], 1
mov dword [esp], 0x41b334
call fcn.00403ba7
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40da6544
mov dword [esp], eax
call fcn.00403a28
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40689c
mov dword [esp + 4], 1
mov dword [esp], 0x41b334
call fcn.00403ba7
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10d13916
mov dword [esp], eax
call fcn.00403a28
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x40689f
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
mov dword [esp + 8], 0x20a
mov dword [esp + 4], 8
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapAlloc]
call eax
sub esp, 0xc
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4068a2
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
mov dword [esp + 8], 0x20a
mov dword [esp + 4], 8
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapAlloc]
call eax
sub esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4068a5
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], str._ws
mov dword [esp + 4], 0x104
mov dword [esp], eax
call sub.msvcrt.dll_swprintf_s
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x284]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
call eax
sub esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40679f
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 2
jne 0x4068a8
mov dword [ebp - 0xc], 1
jmp 0x4068a8
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x284]
add edx, 0x2c
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x41b448
mov dword [esp + 4], 0x104
mov dword [esp], eax
call sub.msvcrt.dll_swprintf_s
mov eax, dword [ebp - 0x284]
and eax, 0x10
test eax, eax
je 0x406831
mov dword [esp + 4], 0x41b4de
lea eax, [ebp - 0x284]
add eax, 0x2c
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__wcsicmp]
call eax
test eax, eax
je 0x40684c
mov dword [esp + 4], 0x41b4e2
lea eax, [ebp - 0x284]
add eax, 0x2c
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__wcsicmp]
call eax
test eax, eax
je 0x40684c
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call fcn.00406554
test eax, eax
jne 0x40684d
mov dword [ebp - 0x10], 0
jmp 0x40684d
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
mov eax, dword [ebp - 0x28]
call eax
sub esp, 4
test eax, eax
jne 0x40684d
mov dword [ebp - 0x10], 0
jmp 0x40684d
nop
lea eax, [ebp - 0x284]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [ebp - 0x24]
call eax
sub esp, 8
test eax, eax
jne 0x40679f
cmp dword [ebp - 0x10], 0
je 0x40688a
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
sub esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4068ab
mov dword [ebp - 0xc], 1
jmp 0x4068ac
nop
jmp 0x4068ac
nop
jmp 0x4068ac
nop
jmp 0x4068ac
nop
jmp 0x4068ac
nop
jmp 0x4068ac
nop
jmp 0x4068ac
nop
jmp 0x4068ac
nop
jmp 0x4068ac
nop
cmp dword [ebp - 0x14], 0
je 0x4068c6
cmp dword [ebp - 0x14], 0xffffffff
je 0x4068c6
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [ebp - 0x18]
call eax
sub esp, 4
lea eax, [ebp - 0x30]
mov dword [esp], eax
call fcn.004052f4
lea eax, [ebp - 0x34]
mov dword [esp], eax
call fcn.004052f4
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
leave
ret