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

Disassembly:
push 0xffffffffffffffff
push 0x50d61e
mov eax, dword fs:[0]
push eax
sub esp, 0x6f8
mov eax, dword [0x53f5a0]
xor eax, esp
mov dword [esp + 0x6f4], eax
push ebx
push esi
push edi
mov eax, dword [0x53f5a0]
xor eax, esp
push eax
lea eax, [esp + 0x708]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x4b4]
mov edi, edx
call fcn.00438f20
mov eax, esi
lea edx, [esp + 0x4b4]
call fcn.00439130
lea ecx, [esp + 0x5dc]
mov dword [esp + 0x710], 1
call fcn.00438f20
mov eax, dword [edi]
push eax
push 0x51ff34
lea edx, [esp + 0x5e4]
call fcn.00439710
add esp, 8
cmp byte [esp + 0x6f8], 0
lea ebx, [esp + 0x5e8]
jne 0x40c71e
mov ebx, dword [esp + 0x5e4]
lea ecx, [esp + 0x18]
call fcn.00438f20
lea eax, [ebx + 4]
lea edx, [esp + 0x18]
call fcn.00439130
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x4b8]
mov byte [esp + 0x714], 2
call fcn.00436390
cmp byte [esp + 0x134], 0
mov ebx, vtable.t_str.0
mov dword [esp + 0x18], ebx
jne 0x40c774
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x40c774
push eax
call fcn.004cc2c0
add esp, 4
cmp dword [esp + 0x4b8], 0
je 0x40c79a
lea ecx, [esp + 0x4b4]
call fcn.004365b0
test al, al
je 0x40c79a
lea ecx, [esp + 0x4b4]
call fcn.00436a20
lea ecx, [esp + 0x13c]
call fcn.00438f20
mov eax, esi
lea edx, [esp + 0x13c]
call fcn.00439130
lea ecx, [esp + 0x38c]
call fcn.00438f20
mov eax, dword [edi]
push eax
push 0x51ff34
lea edx, [esp + 0x394]
call fcn.00439710
push str..zip
push 0x51f1f4
lea edx, [esp + 0x39c]
call fcn.00439710
add esp, 0x10
cmp byte [esp + 0x4a8], 0
lea esi, [esp + 0x398]
jne 0x40c805
mov esi, dword [esp + 0x394]
lea ecx, [esp + 0x18]
call fcn.00438f20
lea eax, [esi + 4]
lea edx, [esp + 0x18]
call fcn.00439130
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x140]
mov byte [esp + 0x714], 6
call fcn.00436390
cmp byte [esp + 0x134], 0
mov dword [esp + 0x18], ebx
jne 0x40c856
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x40c856
push eax
call fcn.004cc2c0
add esp, 4
cmp dword [esp + 0x140], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
je 0x40c89e
cmp byte [esp + 0x258], 0
lea eax, [esp + 0x148]
jne 0x40c87e
mov eax, dword [esp + 0x144]
add eax, 4
push eax
call esi
cmp eax, 0xffffffff
je 0x40c89e
shr eax, 4
not al
and al, 1
je 0x40c89e
lea ecx, [esp + 0x13c]
call fcn.004369b0
mov edi, dword [edi + 0x10]
lea ecx, [esp + 0x264]
call fcn.00438f20
mov eax, edi
lea edx, [esp + 0x264]
call fcn.00439130
mov byte [esp + 0x710], 9
cmp dword [esp + 0x268], 0
je 0x40c905
cmp byte [esp + 0x380], 0
lea eax, [esp + 0x270]
jne 0x40c8e5
mov eax, dword [esp + 0x26c]
add eax, 4
push eax
call esi
cmp eax, 0xffffffff
je 0x40c905
shr eax, 4
not al
and al, 1
je 0x40c905
lea ecx, [esp + 0x264]
call fcn.004369b0
cmp byte [esp + 0x380], 0
mov dword [esp + 0x264], ebx
jne 0x40c931
mov eax, dword [esp + 0x26c]
lea edx, [esp + 0x270]
cmp eax, edx
je 0x40c931
push eax
call fcn.004cc2c0
add esp, 4
cmp byte [esp + 0x4a8], 0
mov dword [esp + 0x38c], ebx
jne 0x40c95d
mov eax, dword [esp + 0x394]
lea ecx, [esp + 0x398]
cmp eax, ecx
je 0x40c95d
push eax
call fcn.004cc2c0
add esp, 4
cmp byte [esp + 0x258], 0
mov dword [esp + 0x13c], ebx
jne 0x40c989
mov eax, dword [esp + 0x144]
lea edx, [esp + 0x148]
cmp eax, edx
je 0x40c989
push eax
call fcn.004cc2c0
add esp, 4
cmp byte [esp + 0x6f8], 0
mov dword [esp + 0x5dc], ebx
jne 0x40c9b5
mov eax, dword [esp + 0x5e4]
lea ecx, [esp + 0x5e8]
cmp eax, ecx
je 0x40c9b5
push eax
call fcn.004cc2c0
add esp, 4
cmp byte [esp + 0x5d0], 0
mov dword [esp + 0x4b4], ebx
jne 0x40c9e1
mov eax, dword [esp + 0x4bc]
lea edx, [esp + 0x4c0]
cmp eax, edx
je 0x40c9e1
push eax
call fcn.004cc2c0
add esp, 4
mov ecx, dword [esp + 0x708]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6f4]
xor ecx, esp
call fcn.004cc2b1
add esp, 0x704
ret