Function at 0x9f028d
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x40
push dword [ebp + 0xc]
call fcn.009f04fb
pop ecx
test eax, eax
pop ecx
je 0x9f04e1
mov esi, dword [ebp + 8]
cmp word [esi], 0x5a4d
je 0x9f02c8
push 0xc1
call dword [fcn.004080a8]
jmp 0x9f04e1
mov eax, dword [esi + 0x3c]
add eax, 0xf8
push eax
push dword [ebp + 0xc]
call fcn.009f04fb
pop ecx
test eax, eax
pop ecx
je 0x9f04e1
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x9f02b8
cmp word [edi + 4], 0x14c
jne 0x9f02b8
mov ebx, dword [edi + 0x38]
test bl, 1
jne 0x9f02b8
movzx eax, word [edi + 0x14]
movzx edx, word [edi + 6]
test edx, edx
lea eax, [eax + edi + 0x18]
jbe 0x9f0330
lea ecx, [eax + 0xc]
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
test esi, esi
jne 0x9f0320
add eax, ebx
jmp 0x9f0322
add eax, esi
cmp eax, dword [ebp - 4]
jbe 0x9f032a
mov dword [ebp - 4], eax
add ecx, 0x28
dec edx
jne 0x9f0313
push 0x40ebe8
call dword [0x4080a4]
test eax, eax
je 0x9f04e1
push 0
push 0x40f55c
push eax
call dword [ebp + 0x1c]
add esp, 0xc
test eax, eax
je 0x9f04e1
lea ecx, [ebp - 0x28]
push ecx
call eax
mov eax, dword [ebp - 0x24]
mov edx, dword [edi + 0x50]
lea esi, [edx + eax - 1]
mov edx, dword [ebp - 4]
lea ecx, [eax - 1]
not ecx
lea eax, [eax + edx - 1]
and esi, ecx
and eax, ecx
cmp esi, eax
jne 0x9f02b8
push dword [ebp + 0x24]
push 4
push 0x3000
push esi
push dword [edi + 0x34]
call dword [ebp + 0x10]
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x9f03b3
push dword [ebp + 0x24]
push 4
push 0x3000
push esi
push eax
call dword [ebp + 0x10]
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x9f03da
push 0x3c
push 8
call dword [0x4080a0]
push eax
call dword [0x40809c]
mov esi, eax
test esi, esi
jne 0x9f03e1
push dword [ebp + 0x24]
push 0x8000
push eax
push ebx
call dword [ebp + 0x14]
add esp, 0x10
push 0xe
jmp 0x9f02bd
mov dword [esi + 4], ebx
mov ax, word [edi + 0x16]
shr eax, 0xd
and eax, 1
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x38], eax
push dword [edi + 0x54]
push dword [ebp + 0xc]
call fcn.009f04fb
pop ecx
test eax, eax
pop ecx
je 0x9f04da
push dword [ebp + 0x24]
push 4
push 0x1000
push dword [edi + 0x54]
push ebx
call dword [ebp + 0x10]
push dword [edi + 0x54]
mov dword [ebp + 0x24], eax
push dword [ebp + 8]
push eax
call fcn.009f57aa
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x24]
push esi
push edi
mov eax, dword [ecx + 0x3c]
push dword [ebp + 0xc]
add eax, edx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], ebx
call fcn.009f0514
add esp, 0x30
test eax, eax
je 0x9f04da
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
sub eax, dword [edi + 0x34]
je 0x9f048d
push eax
push esi
call fcn.009f07fc
pop ecx
mov dword [esi + 0x18], eax
pop ecx
push 1
pop edi
jmp 0x9f0493
push 1
pop edi
mov dword [esi + 0x18], edi
push esi
call fcn.009f0883
test eax, eax
pop ecx
je 0x9f04da
push esi
call fcn.009f05ef
test eax, eax
pop ecx
je 0x9f04da
push esi
call fcn.009f07c1
test eax, eax
pop ecx
je 0x9f04da
mov eax, dword [esi]
xor ecx, ecx
mov eax, dword [eax + 0x28]
cmp eax, ecx
je 0x9f04f1
cmp dword [esi + 0x14], ecx
je 0x9f04ea
push ecx
push edi
add eax, ebx
push ebx
call eax
test eax, eax
jne 0x9f04e5
push 0x45a
call dword [fcn.004080a8]
push esi
call fcn.009f0a70
pop ecx
xor eax, eax
jmp 0x9f04f6
mov dword [esi + 0x10], edi
jmp 0x9f04f4
add eax, ebx
mov dword [esi + 0x34], eax
jmp 0x9f04f4
mov dword [esi + 0x34], ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret