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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493293
mov eax, dword fs:[0]
push eax
sub esp, 0x9f0
mov eax, dword [0x4aeea0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x9fc], esi
mov dword [ebp - 0x9cc], 0
call fcn.0040dbd0
push 0x100
lea ecx, [ebp - 0x3c8]
push ecx
push 0x100
lea ecx, [ebp - 0x5c8]
push ecx
push 0x100
lea ecx, [ebp - 0x7c8]
push ecx
mov dword [ebp - 4], 1
cmp dword [ebp - 0x44], 8
push 0x100
lea ecx, [ebp - 0x9c8]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call fcn.0045cb0a
add esp, 0x24
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
xor eax, eax
mov dword [ebp - 0xa8], vtable.ResInStream.0
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], 0
mov word [ebp - 0x9c], ax
mov dword [ebp - 0x70], 7
mov dword [ebp - 0x74], eax
mov word [ebp - 0x84], ax
push 0x12c
push 0x4a47fc
push eax
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 4
call fcn.0040b1e0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
xor eax, eax
mov dword [ebp - 0xf8], vtable.ResInStream.0
mov dword [ebp - 0xd8], 7
mov dword [ebp - 0xdc], 0
mov word [ebp - 0xec], ax
mov dword [ebp - 0xc0], 7
mov dword [ebp - 0xc4], eax
mov word [ebp - 0xd4], ax
push 0xc8
push 0x4a47fc
push eax
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 8
call fcn.0040b1e0
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 9
call fcn.0040b3a0
lea ecx, [ebp - 0xa8]
call fcn.0040b3a0
cmp byte [ebp - 0xb3], 0
mov ebx, eax
je 0x407e6b
cmp byte [ebp - 0x63], 0
je 0x407e6b
test bl, 1
jne 0x407e6b
xor eax, eax
push eax
mov word [ebp - 0x40], ax
mov eax, ebx
shr eax, 1
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
call fcn.00403810
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ebx
push eax
lea ecx, [ebp - 0xa8]
call fcn.0040b410
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa8]
mov eax, dword [eax + 8]
call eax
test al, al
je 0x407c82
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov byte [ebp - 0x63], 0
lea eax, [ebp - 0x5c8]
push eax
lea ecx, [ebp - 0x9f8]
call fcn.004028f0
lea ecx, [ebp - 0x40]
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.00409d70
add esp, 4
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x9e4], 8
jb 0x407cc4
push dword [ebp - 0x9f8]
call fcn.0045b2a0
add esp, 4
xor eax, eax
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x9f8], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x9e4], 7
mov dword [ebp - 0x9e8], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407e1e
push ecx
lea ecx, [ebp - 0x1c8]
call fcn.00407ee0
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c8]
call fcn.00405670
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 0xe
call fcn.00405910
cmp byte [ebp - 0xff], 0
jne 0x407d97
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x1c8]
mov word [esi], ax
mov dword [ebp - 0x9cc], 1
mov byte [ebp - 4], 0xd
call fcn.004057f0
lea ecx, [ebp - 0x28]
call fcn.004029c0
lea ecx, [ebp - 0x40]
call fcn.004029c0
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 5
call fcn.0040b2b0
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.0040b2b0
lea ecx, [ebp - 0x58]
call fcn.004029c0
jmp 0x407eb7
lea eax, [ebp - 0xf8]
mov dword [ebp - 0x9dc], eax
lea eax, [ebp - 0x1c8]
mov dword [ebp - 0x9d8], eax
mov dword [ebp - 0x9d4], 0
mov byte [ebp - 0x9d0], 0
mov dword [ebp - 0x9e0], 0
lea ecx, [ebp - 0x9e0]
mov byte [ebp - 4], 0xf
call fcn.0040ca70
lea ecx, [ebp - 0x1c8]
call fcn.00405ad0
lea ecx, [ebp - 0xf8]
call fcn.0040b4a0
push 0x80
mov edx, 2
lea ecx, [ebp - 0x28]
call fcn.0040df70
add esp, 4
lea ecx, [ebp - 0x9e0]
call fcn.0040ca50
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 0xd
call fcn.004057f0
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.00402950
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x9cc], 1
jb 0x407e44
push dword [ebp - 0x28]
call fcn.0045b2a0
add esp, 4
xor eax, eax
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x407e88
push dword [ebp - 0x40]
call fcn.0045b2a0
add esp, 4
jmp 0x407e88
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [ebp - 0x9cc], 1
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 5
call fcn.0040b2b0
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.0040b2b0
cmp dword [ebp - 0x44], 8
jb 0x407eb7
push dword [ebp - 0x58]
call fcn.0045b2a0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045a8cf
mov esp, ebp
pop ebp
ret