Function at 0x459ba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 0x14
rep stosd dword es:[edi], eax
pop edi
pop ecx
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x459bd0
mov edx, dword [ebp - 0x18]
inc dword [edx]
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.00456fa0
cmp dword [ebp - 0x18], 0
je 0x459bea
mov ecx, dword [ebp - 0x18]
call fcn.00401b80
mov eax, dword [ebp - 0x50]
mov dword [eax], 0x4b67e8
mov eax, dword [ebp - 0x50]
mov dword [eax + 0xc], 0
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x10], 0
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x11], 0
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x12], 0
cmp byte [ebp + 0xc], 1
jne 0x459cc8
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.0045de50
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004589c0
pop ecx
pop ecx
cmp dword [ebp - 0x1c], 0
je 0x459c45
mov ecx, dword [ebp - 0x1c]
call fcn.00401b80
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
je 0x459c56
mov edx, dword [ebp - 0x20]
inc dword [edx]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
je 0x459c69
mov edx, dword [ebp - 0x24]
inc dword [edx]
push 1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.004591b0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 0xc
call fcn.00402570
cmp dword [ebp - 0x28], 0
je 0x459c9c
mov ecx, dword [ebp - 0x28]
call fcn.00401b80
cmp dword [ebp - 0x24], 0
je 0x459caa
mov ecx, dword [ebp - 0x24]
call fcn.00401b80
cmp dword [ebp - 0x20], 0
je 0x459cb8
mov ecx, dword [ebp - 0x20]
call fcn.00401b80
cmp dword [ebp - 4], 0
je 0x459cd6
mov ecx, dword [ebp - 4]
call fcn.00401b80
jmp 0x459cd6
push dword [ebp + 8]
mov ecx, dword [ebp - 0x50]
add ecx, 0xc
call fcn.00402570
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0
je 0x459cea
mov edx, dword [ebp - 0x2c]
inc dword [edx]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.0045a480
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 0xc
call fcn.00402570
cmp dword [ebp - 0x30], 0
je 0x459d17
mov ecx, dword [ebp - 0x30]
call fcn.00401b80
cmp dword [ebp - 0x2c], 0
je 0x459d25
mov ecx, dword [ebp - 0x2c]
call fcn.00401b80
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
je 0x459d54
mov edx, dword [ebp - 0x34]
inc dword [edx]
lea eax, [ebp - 0x14]
push eax
push 0x5c
lea eax, [ebp - 0x34]
push eax
call fcn.004901d0
add esp, 0xc
cmp dword [ebp - 0x34], 0
je 0x459d74
mov ecx, dword [ebp - 0x34]
call fcn.00401b80
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x459d89
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 4]
add edx, 1
jmp 0x459d8e
mov edx, 0x4a8034
cmp byte [edx], 0x5c
jne 0x459dc3
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x459da8
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 4]
add edx, 2
jmp 0x459dad
mov edx, 0x4a8034
cmp byte [edx], 0x5c
jne 0x459dc3
mov eax, dword [ebp - 0xc]
cmp eax, 4
jne 0x459dc3
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x10], 1
jmp 0x459e2d
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x459dd8
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 4]
add edx, 2
jmp 0x459ddd
mov edx, 0x4a8034
cmp byte [edx], 0x3a
jne 0x459e23
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x459df4
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
jmp 0x459df9
mov eax, 0
cmp eax, 3
je 0x459e1a
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x459e10
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
jmp 0x459e15
mov eax, 0
cmp eax, 2
jne 0x459e23
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x10], 1
jmp 0x459e2d
movzx edx, byte [ebp + 0x10]
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x10], dl
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
je 0x459e41
mov edx, dword [ebp - 0x38]
inc dword [edx]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004589c0
pop ecx
pop ecx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 0xc
call fcn.00402570
cmp dword [ebp - 0x3c], 0
je 0x459e6d
mov ecx, dword [ebp - 0x3c]
call fcn.00401b80
cmp dword [ebp - 0x38], 0
je 0x459e7b
mov ecx, dword [ebp - 0x38]
call fcn.00401b80
cmp dword [ebp + 0x14], 0
je 0x459f27
call fcn.00490470
cmp al, 0
je 0x459ebf
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 0xc
call fcn.004021d0
lea ecx, [ebp - 0x40]
call fcn.00402480
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x40], 0
je 0x459f10
mov ecx, dword [ebp - 0x40]
call fcn.00401b80
jmp 0x459f10
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
je 0x459ed3
mov edx, dword [ebp - 0x44]
inc dword [edx]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0047ff50
pop ecx
pop ecx
lea ecx, [ebp - 0x48]
call fcn.00402450
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x48], 0
je 0x459f02
mov ecx, dword [ebp - 0x48]
call fcn.00401b80
cmp dword [ebp - 0x44], 0
je 0x459f10
mov ecx, dword [ebp - 0x44]
call fcn.00401b80
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x459f27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
setne dl
mov eax, dword [ebp + 0x14]
mov byte [eax], dl
cmp dword [ebp - 0x10], 0
je 0x459f3c
push 0x401aa0
push dword [ebp - 0x10]
call fcn.0049cb00
pop ecx
pop ecx
mov eax, dword [ebp - 0x50]
leave
ret 0x10