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

Disassembly:
push 0xffffffffffffffff
push 0x50ed1e
mov eax, dword fs:[0]
push eax
sub esp, 0x6f8
mov eax, dword [0x5405a0]
xor eax, esp
mov dword [esp + 0x6f4], eax
push ebx
push esi
push edi
mov eax, dword [0x5405a0]
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.0043a090
mov eax, esi
lea edx, [esp + 0x4b4]
call fcn.0043a2e0
lea ecx, [esp + 0x5dc]
mov dword [esp + 0x710], 1
call fcn.0043a090
mov eax, dword [edi]
push eax
push 0x5221b8
lea edx, [esp + 0x5e4]
call fcn.0043a8a0
add esp, 8
cmp byte [esp + 0x6f8], 0
lea ebx, [esp + 0x5e8]
jne 0x40bf6e
mov ebx, dword [esp + 0x5e4]
lea ecx, [esp + 0x18]
call fcn.0043a090
lea eax, [ebx + 4]
lea edx, [esp + 0x18]
call fcn.0043a2e0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x4b8]
mov byte [esp + 0x714], 2
call fcn.004374e0
cmp byte [esp + 0x134], 0
mov ebx, vtable.t_str.0
mov dword [esp + 0x18], ebx
jne 0x40bfc4
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x40bfc4
push eax
call fcn.004ccef0
add esp, 4
cmp dword [esp + 0x4b8], 0
je 0x40bfea
lea ecx, [esp + 0x4b4]
call fcn.00437700
test al, al
je 0x40bfea
lea ecx, [esp + 0x4b4]
call fcn.00437b70
lea ecx, [esp + 0x13c]
call fcn.0043a090
mov eax, esi
lea edx, [esp + 0x13c]
call fcn.0043a2e0
lea ecx, [esp + 0x38c]
call fcn.0043a090
mov eax, dword [edi]
push eax
push 0x5221b8
lea edx, [esp + 0x394]
call fcn.0043a8a0
push str..zip
push 0x52139c
lea edx, [esp + 0x39c]
call fcn.0043a8a0
add esp, 0x10
cmp byte [esp + 0x4a8], 0
lea esi, [esp + 0x398]
jne 0x40c055
mov esi, dword [esp + 0x394]
lea ecx, [esp + 0x18]
call fcn.0043a090
lea eax, [esi + 4]
lea edx, [esp + 0x18]
call fcn.0043a2e0
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x140]
mov byte [esp + 0x714], 6
call fcn.004374e0
cmp byte [esp + 0x134], 0
mov dword [esp + 0x18], ebx
jne 0x40c0a6
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x40c0a6
push eax
call fcn.004ccef0
add esp, 4
cmp dword [esp + 0x140], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
je 0x40c0ee
cmp byte [esp + 0x258], 0
lea eax, [esp + 0x148]
jne 0x40c0ce
mov eax, dword [esp + 0x144]
add eax, 4
push eax
call esi
cmp eax, 0xffffffff
je 0x40c0ee
shr eax, 4
not al
and al, 1
je 0x40c0ee
lea ecx, [esp + 0x13c]
call fcn.00437b00
mov edi, dword [edi + 0x10]
lea ecx, [esp + 0x264]
call fcn.0043a090
mov eax, edi
lea edx, [esp + 0x264]
call fcn.0043a2e0
mov byte [esp + 0x710], 9
cmp dword [esp + 0x268], 0
je 0x40c155
cmp byte [esp + 0x380], 0
lea eax, [esp + 0x270]
jne 0x40c135
mov eax, dword [esp + 0x26c]
add eax, 4
push eax
call esi
cmp eax, 0xffffffff
je 0x40c155
shr eax, 4
not al
and al, 1
je 0x40c155
lea ecx, [esp + 0x264]
call fcn.00437b00
cmp byte [esp + 0x380], 0
mov dword [esp + 0x264], ebx
jne 0x40c181
mov eax, dword [esp + 0x26c]
lea edx, [esp + 0x270]
cmp eax, edx
je 0x40c181
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x4a8], 0
mov dword [esp + 0x38c], ebx
jne 0x40c1ad
mov eax, dword [esp + 0x394]
lea ecx, [esp + 0x398]
cmp eax, ecx
je 0x40c1ad
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x258], 0
mov dword [esp + 0x13c], ebx
jne 0x40c1d9
mov eax, dword [esp + 0x144]
lea edx, [esp + 0x148]
cmp eax, edx
je 0x40c1d9
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x6f8], 0
mov dword [esp + 0x5dc], ebx
jne 0x40c205
mov eax, dword [esp + 0x5e4]
lea ecx, [esp + 0x5e8]
cmp eax, ecx
je 0x40c205
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x5d0], 0
mov dword [esp + 0x4b4], ebx
jne 0x40c231
mov eax, dword [esp + 0x4bc]
lea edx, [esp + 0x4c0]
cmp eax, edx
je 0x40c231
push eax
call fcn.004ccef0
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.004ccee1
add esp, 0x704
ret