Function at 0x4056c0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x440528
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x453004]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
lea ebp, [esi + 0x40]
mov ecx, ebp
mov dword [esp + 0x1c], ebp
call fcn.0040a390
movzx eax, byte [esi + 0x5a]
cmp eax, 1
je 0x40570a
cmp eax, 2
je 0x40570a
cmp eax, 3
jne 0x405757
lea eax, [esp + 0x30]
push eax
push 0x9901
mov ecx, ebp
call fcn.00403f30
mov edi, eax
push 0
push 7
mov ecx, edi
call fcn.00409f90
mov eax, dword [edi + 4]
xor ecx, ecx
cmp byte [esi + 0x5b], cl
mov word [eax + 2], 0x4541
setne cl
mov dword [esp + 0x14], 0x63
add ecx, 1
mov word [eax], cx
mov dl, byte [esi + 0x5a]
mov byte [eax + 4], dl
movzx ecx, word [esi + 0xa]
mov word [eax + 5], cx
jmp 0x40575f
movzx eax, word [esi + 0xa]
mov dword [esp + 0x14], eax
push 1
push 0
mov ecx, esi
call fcn.004053d0
push 0
push 0
mov ecx, esi
call fcn.004053d0
cmp dword [esi + 0x6c], 0
lea eax, [esi + 0x68]
mov dword [esp + 0x30], eax
je 0x405788
cmp dword [eax + 8], 0
ja 0x405790
push eax
mov ecx, esi
call fcn.00404840
cmp dword [esi + 0x7c], 0
lea eax, [esi + 0x78]
je 0x40579f
cmp dword [eax + 8], 0
ja 0x4057a7
push eax
mov ecx, esi
call fcn.00403b70
mov eax, dword [esi + 0x80]
cmp eax, 0xffff
jg 0x4057d0
cmp dword [esi + 0x70], 0xffff
jg 0x4057d0
mov ecx, ebp
call fcn.0040a190
cmp eax, 0xffff
setle al
test al, al
jne 0x4057d9
push 0
push 0x6f
call fcn.00403410
mov edi, dword [esi + 0x70]
mov ebx, dword [esi + 0x80]
mov ecx, ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], ebx
call fcn.0040a190
movzx ebp, ax
movzx ecx, bx
movzx eax, bp
movzx ebx, di
mov dword [esp + 0x24], ecx
add ecx, ebx
mov dword [esp + 0x28], eax
lea eax, [ecx + eax + 0x2e]
push 0
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], eax
call fcn.0040a0a0
mov edi, dword [esp + 0x38]
mov edx, dword [0x45103c]
xor eax, eax
mov dword [edi], edx
mov ah, byte [esi + 0x88]
mov cx, word [esp + 0x14]
mov dword [esp + 0x48], 0
mov al, byte [esi + 4]
movzx eax, ax
mov word [edi + 4], ax
movzx eax, word [esi + 6]
mov word [edi + 6], ax
movzx eax, word [esi + 8]
mov word [edi + 8], ax
mov word [edi + 0xa], cx
movzx eax, word [esi + 0xc]
mov word [edi + 0xc], ax
movzx eax, word [esi + 0xe]
mov word [edi + 0xe], ax
cmp byte [esi + 0x5b], 0
je 0x405874
xor eax, eax
jmp 0x405877
mov eax, dword [esi + 0x10]
mov dx, word [esp + 0x20]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov ax, word [esp + 0x18]
mov word [edi + 0x1c], dx
mov word [edi + 0x1e], bp
mov word [edi + 0x20], ax
movzx eax, word [esi + 0x1c]
mov word [edi + 0x22], ax
movzx eax, word [esi + 0x1e]
mov word [edi + 0x24], ax
mov eax, dword [esi + 0x54]
mov dword [edi + 0x26], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x2a], eax
mov eax, dword [esi + 0x6c]
push ebx
push eax
lea ecx, [edi + 0x2e]
push ecx
call fcn.0042e810
add esp, 0xc
test bp, bp
je 0x4058dc
mov ecx, dword [esp + 0x1c]
lea edx, [ebx + edi + 0x2e]
push edx
call fcn.0040a140
cmp word [esp + 0x18], 0
je 0x405900
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov esi, dword [esi + 0x7c]
push eax
add ebx, ecx
lea edx, [ebx + edi + 0x2e]
push esi
push edx
call fcn.0042e810
add esp, 0xc
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x50]
push 1
push ebx
push edi
call fcn.0040cbc0
mov ecx, dword [esp + 0x1c]
call fcn.0040a390
mov edi, dword [esp + 0x30]
mov esi, dword [edi + 0xc]
test esi, esi
je 0x405953
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405943
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call fcn.00423058
add esp, 4
mov dword [edi + 0xc], 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 0xffffffff
call fcn.0040a0d0
mov eax, ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 4