Function at 0x40a740
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ecx + 0x70]
mov esi, ecx
test eax, eax
je 0x40a766
cmp dword [esi + 0x74], 0
je 0x40a766
push eax
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
movzx eax, byte [esi + 0x40]
cmp eax, 6
je 0x40a7be
cmp eax, 3
jb 0x40a7be
je 0x40a7a8
cmp eax, 4
jne 0x40a808
mov ebx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
test ebx, ebx
mov dword [ebp - 0x10], eax
je 0x40a79d
mov edi, dword [ebp - 0x10]
nop
mov ecx, edi
call fcn.004e63d0
add edi, 0x18
dec ebx
jne 0x40a790
cmp dword [esi + 0x44], 0
je 0x40a7be
push dword [ebp - 0x10]
jmp 0x40a7b1
cmp dword [esi + 0x44], 0
je 0x40a7be
push dword [esi + 0x48]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
movzx eax, byte [esi + 0x58]
cmp eax, 6
je 0x40a853
cmp eax, 3
jb 0x40a853
je 0x40a83d
cmp eax, 4
jne 0x40a8d0
mov ebx, dword [esi + 0x64]
mov eax, dword [esi + 0x60]
test ebx, ebx
mov dword [ebp - 0x10], eax
je 0x40a7fd
mov edi, dword [ebp - 0x10]
nop
mov ecx, edi
call fcn.004e63d0
add edi, 0x18
dec ebx
jne 0x40a7f0
cmp dword [esi + 0x5c], 0
je 0x40a853
push dword [ebp - 0x10]
jmp 0x40a846
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x40a8fe
mov edx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], ecx
mov ecx, 1
mov dword [ebp - 0x18], edx
jmp 0x40a902
cmp dword [esi + 0x5c], 0
je 0x40a853
push dword [esi + 0x60]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esi + 0x78]
cmp eax, 0x80000000
je 0x40a871
test eax, eax
je 0x40a871
push dword [esi + 0x7c]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
cmp byte [esi + 0x3c], 2
je 0x40a8c8
mov eax, dword [esi + 0x28]
test eax, eax
je 0x40a892
cmp dword [esi + 0x2c], 0
je 0x40a892
push eax
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40a8ad
cmp dword [esi + 0x20], 0
je 0x40a8ad
push eax
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esi + 8]
test eax, eax
je 0x40a8c8
cmp dword [esi + 0xc], 0
je 0x40a8c8
push eax
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x40a93c
mov edx, dword [esi + 0x60]
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], ecx
mov ecx, 1
mov dword [ebp - 0x18], edx
jmp 0x40a940
xor ecx, ecx
xor eax, eax
lea edi, [ebp - 0x40]
lea ebx, [ebp - 0x34]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
nop word cs:[eax + eax]
nop dword [eax + eax]
mov ecx, edi
mov edx, ebx
call fcn.0052f1f0
cmp dword [ebp - 0x40], 0
je 0x40a7be
mov ecx, edi
call fcn.0052f3a0
jmp 0x40a920
xor ecx, ecx
xor eax, eax
lea edi, [ebp - 0x40]
lea ebx, [ebp - 0x34]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
nop
mov ecx, edi
mov edx, ebx
call fcn.0052f1f0
cmp dword [ebp - 0x40], 0
je 0x40a853
mov ecx, edi
call fcn.0052f3a0
jmp 0x40a950