Function at 0xb32939
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov ebx, edx
mov ebp, ecx
push 0x40
pop edx
mov ecx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebp
xor esi, esi
call fcn.00b323d7
test eax, eax
jne 0xb32962
xor eax, eax
jmp 0xb32b75
mov eax, 0x5a4d
cmp word [ebp], ax
je 0xb3297a
push 0xc1
call dword [0xb790d8]
jmp 0xb3295b
mov edx, dword [ebp + 0x3c]
mov ecx, ebx
add edx, 0xf8
call fcn.00b323d7
test eax, eax
je 0xb3295b
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
cmp dword [ebx], 0x4550
jne 0xb3296d
mov eax, 0x14c
cmp word [ebx + 4], ax
jne 0xb3296d
test byte [ebx + 0x38], 1
jne 0xb3296d
movzx edx, word [ebx + 6]
movzx eax, word [ebx + 0x14]
test edx, edx
je 0xb329da
lea ecx, [ebx + 0x24]
add ecx, eax
cmp dword [ecx + 4], 0
mov eax, dword [ecx]
jne 0xb329ca
add eax, dword [ebx + 0x38]
jmp 0xb329cd
add eax, dword [ecx + 4]
cmp eax, esi
cmova esi, eax
add ecx, 0x28
sub edx, 1
jne 0xb329bd
push edi
lea eax, [esp + 0x18]
push eax
call dword [0xb790e4]
mov ecx, dword [ebx + 0x50]
mov edx, dword [esp + 0x1c]
call fcn.00b323c6
mov ecx, esi
mov edi, eax
call fcn.00b323c6
cmp edi, eax
je 0xb32a0f
push 0xc1
call dword [0xb790d8]
jmp 0xb32b72
xor esi, esi
push esi
push 0x40
push 0x3000
push edi
push dword [ebx + 0x34]
call fcn.00b328de
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0xb32a47
push esi
push 0x40
push 0x3000
push edi
push esi
call fcn.00b328de
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0xb32a47
push 0xe
jmp 0xb32a04
push 0x40
push 8
call dword [0xb790ec]
push eax
call dword [0xb790e8]
mov edi, eax
test edi, edi
jne 0xb32a70
push esi
push 0x8000
push esi
push ebp
call fcn.00b328f5
add esp, 0x10
jmp 0xb32a43
mov ecx, dword [esp + 0x14]
mov dword [edi + 4], ebp
movzx eax, word [ebx + 0x16]
shr eax, 0xd
and eax, 1
mov dword [edi + 0x1c], 0xb31cde
mov dword [edi + 0x14], eax
mov dword [edi + 0x20], 0xb31cf5
mov dword [edi + 0x24], 0xb31d08
mov dword [edi + 0x28], 0xb31d13
mov dword [edi + 0x2c], 0xb31d22
mov dword [edi + 0x34], esi
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x3c], eax
mov edx, dword [ebx + 0x54]
call fcn.00b323d7
test eax, eax
je 0xb32b6b
push esi
push 4
push 0x1000
push dword [ebx + 0x54]
push ebp
call fcn.00b328de
push dword [ebx + 0x54]
mov esi, eax
push dword [esp + 0x28]
push esi
call fcn.00b57590
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push edi
mov eax, dword [eax + 0x3c]
add eax, esi
mov dword [edi], eax
push ebx
mov dword [eax + 0x34], ebp
call fcn.00b323ea
add esp, 0x28
test eax, eax
je 0xb32b6b
mov eax, dword [edi]
mov edx, dword [eax + 0x34]
sub edx, dword [ebx + 0x34]
je 0xb32b1e
mov ecx, edi
call fcn.00b326ee
xor esi, esi
mov dword [edi + 0x18], eax
inc esi
jmp 0xb32b24
xor esi, esi
inc esi
mov dword [edi + 0x18], esi
mov ecx, edi
call fcn.00b3279a
test eax, eax
je 0xb32b6b
mov ecx, edi
call fcn.00b3258a
test eax, eax
je 0xb32b6b
mov ecx, edi
call fcn.00b326bd
test eax, eax
je 0xb32b6b
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0xb32b86
add eax, ebp
cmp dword [edi + 0x14], 0
je 0xb32b81
push 0
push esi
push ebp
call eax
test eax, eax
jne 0xb32b7c
push 0x45a
call dword [0xb790d8]
mov ecx, edi
call fcn.00b32cb2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov dword [edi + 0x10], esi
jmp 0xb32b8a
mov dword [edi + 0x38], eax
jmp 0xb32b8a
and dword [edi + 0x38], 0
mov eax, edi
jmp 0xb32b74