Function at 0x4038c0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x681588
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x783760]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x30]
call fcn.0040c5a0
mov al, byte [esi + 0xc]
shr al, 3
test al, 1
je 0x40391d
movzx eax, byte [esi + 0x66]
mov dword [esi + 0x24], 0
cmp eax, 1
je 0x40391d
cmp eax, 2
je 0x40391d
cmp eax, 3
je 0x40391d
mov dword [esi + 0x28], 0
movzx eax, word [esi + 0xe]
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.00402940
cmp dword [esi + 0x8c], 0xffff
jg 0x403add
cmp dword [esi + 0x7c], 0xffff
jg 0x403add
lea ecx, [esi + 0x30]
call fcn.0040c450
cmp eax, 0xffff
setle al
test al, al
je 0x403add
mov eax, dword [esi + 0x7c]
lea ecx, [esi + 0x30]
mov word [esi + 0x64], ax
call fcn.0040c450
movzx ebx, word [esi + 0x64]
mov edx, eax
add ebx, 0x1e
mov dword [ebp - 0x10], edx
add ebx, edx
mov dword [ebp - 0x20], vtable.CZipAutoBuffer.0
xor edi, edi
mov dword [esi + 0x68], ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], edi
test ebx, ebx
je 0x4039ab
push ebx
call fcn.0056e306
mov edx, dword [ebp - 0x10]
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov eax, dword [0x786500]
mov dword [edi], eax
movzx eax, word [esi + 0xa]
mov word [edi + 4], ax
movzx eax, word [esi + 0xc]
mov word [edi + 6], ax
mov eax, dword [ebp - 0x14]
mov word [edi + 8], ax
movzx eax, word [esi + 0x10]
mov word [edi + 0xa], ax
movzx eax, word [esi + 0x12]
mov word [edi + 0xc], ax
cmp byte [esi + 0x67], 0
je 0x4039ea
xor eax, eax
jmp 0x4039ed
mov eax, dword [esi + 0x14]
mov dword [edi + 0xe], eax
mov eax, dword [esi + 0x24]
mov dword [edi + 0x12], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x16], eax
mov ax, word [esi + 0x64]
mov word [edi + 0x1a], ax
mov word [edi + 0x1c], dx
movzx eax, word [esi + 0x64]
push eax
push dword [esi + 0x78]
lea eax, [edi + 0x1e]
push eax
call fcn.00643300
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x403a34
movzx eax, word [esi + 0x64]
lea ecx, [esi + 0x30]
add eax, 0x1e
add eax, edi
push eax
call fcn.0040c3d0
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 1
push dword [esi + 0x68]
push edi
call fcn.0040b350
mov eax, dword [ebx + 0x3c]
and eax, 0x70
cmp al, 0x70
jne 0x403a52
xor eax, eax
jmp 0x403a56
movzx eax, word [ebx + 0x24]
mov ecx, ebx
mov word [esi + 0x20], ax
call fcn.00402640
sub eax, dword [esi + 0x68]
lea ecx, [esi + 0x30]
mov dword [esi + 0x2c], eax
call fcn.0040c5a0
mov ebx, dword [esi + 0x80]
test ebx, ebx
je 0x403ac0
mov eax, dword [ebx + 0x14]
cmp eax, 8
jb 0x403a8c
inc eax
mov ecx, ebx
push eax
push dword [ebx]
call fcn.00401f70
mov dword [ebx + 0x14], 7
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], 0
jb 0x403aa4
mov eax, dword [ebx]
jmp 0x403aa6
mov eax, ebx
xor ecx, ecx
push 0x18
push ebx
mov word [eax], cx
call fcn.0056df27
add esp, 8
mov dword [esi + 0x80], 0
push edi
call fcn.0056e30f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x6c]
push 0xd3
call fcn.0040d180
int3