Function at 0x100545b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
mov ebp, dword [eax + 4]
mov ebx, pe_nt_image_headers32
push edi
mov edi, dword [eax + 0x30]
movzx ecx, byte [edi + ebp]
lea esi, [edi + ebp]
movzx eax, byte [esi + 1]
imul ecx, ebx
mov dword [esp + 0x10], edi
add cx, ax
movzx eax, cx
mov dword [esp + 0x18], eax
test ax, ax
jne 0x10054610
movzx ecx, byte [esi + 2]
movzx eax, byte [esi + 3]
shl ecx, 8
add eax, 0xfffffffa
add eax, ecx
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jge 0x100548ac
movzx eax, byte [esi + ecx + 6]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp eax, 6
jne 0x10054661
movzx edx, byte [esi + 6]
movzx eax, byte [esi + 7]
mov ebx, dword [esp + 0x24]
shl edx, 8
add edx, eax
cmp ebx, edx
jb 0x100548ac
movzx ecx, byte [esi + 8]
movzx eax, byte [esi + 9]
shl ecx, 8
add ecx, edx
add eax, ecx
cmp ebx, eax
jae 0x100548ac
sub ebx, edx
lea ecx, [edi + ebx*2]
movzx eax, byte [ecx + ebp + 0xa]
movzx ecx, byte [ecx + ebp + 0xb]
pop edi
pop esi
shl eax, 8
pop ebp
add eax, ecx
pop ebx
add esp, 0xc
ret
cmp eax, 2
je 0x100548ac
cmp eax, 4
jne 0x1005480e
movzx ecx, byte [esi + 6]
movzx edx, byte [esi + 7]
imul ecx, ebx
add dx, cx
movzx ecx, byte [esi + 8]
imul ecx, ebx
shr dx, 1
movzx eax, dx
movzx edx, byte [esi + 9]
mov dword [esp + 0x20], eax
add dx, cx
movzx ecx, byte [esi + 0xa]
imul ecx, ebx
shr dx, 1
movzx eax, dx
mov dword [esp + 0x14], eax
movzx eax, byte [esi + 0xb]
add cx, ax
mov eax, pe_nt_image_headers32
movzx ebx, cx
movzx ecx, byte [esi + 0xc]
imul ecx, eax
movzx eax, byte [esi + 0xd]
lea esi, [edi + 0xe]
add cx, ax
shr cx, 1
cmp dword [esp + 0x24], 0xffff
movzx eax, cx
jg 0x100548ac
lea edx, [esi + eax*2]
movzx ecx, byte [edx + ebp]
movzx eax, byte [edx + ebp + 1]
shl ecx, 8
add ecx, eax
cmp dword [esp + 0x24], ecx
cmovge esi, edx
sub esi, 2
test bx, bx
je 0x10054730
mov di, word [esp + 0x14]
shr di, 1
movzx eax, di
lea edx, [esi + eax*2]
movzx ecx, byte [edx + ebp]
movzx eax, byte [edx + ebp + 1]
shl ecx, 8
add ecx, eax
cmp dword [esp + 0x24], ecx
cmovg esi, edx
add ebx, 0xffff
test bx, bx
jne 0x10054703
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
lea ecx, [edi + 0xe]
mov ebx, dword [esp + 0x24]
sub esi, ecx
add esi, 2
movzx eax, ax
shr esi, 1
movzx edx, si
add eax, edx
mov dword [esp + 0x10], edx
lea esi, [ecx + edx*2]
lea eax, [edi + eax*2]
movzx ecx, byte [eax + ebp + 0x10]
movzx eax, byte [eax + ebp + 0x11]
shl ecx, 8
add ecx, eax
mov dword [esp + 0x14], ecx
cmp ebx, ecx
jl 0x100548ac
movzx ecx, byte [esi + ebp]
movzx eax, byte [esi + ebp + 1]
shl ecx, 8
add ecx, eax
cmp ebx, ecx
jg 0x100548ac
mov ecx, dword [esp + 0x20]
movzx eax, cx
lea esi, [eax + eax*2]
lea eax, [esi + edx]
lea eax, [edi + eax*2]
movzx edx, byte [eax + ebp + 0x11]
movzx ecx, byte [eax + ebp + 0x10]
mov eax, pe_nt_image_headers32
imul ecx, eax
add dx, cx
movzx ecx, dx
test cx, cx
jne 0x100547e8
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
movzx ecx, dx
lea eax, [eax + ecx*2]
lea eax, [eax + 8]
lea eax, [edi + eax*2]
movzx edx, byte [eax + ebp + 1]
movzx ecx, byte [eax + ebp]
mov eax, pe_nt_image_headers32
imul ecx, eax
pop edi
pop esi
pop ebp
add dx, cx
add dx, bx
movzx eax, dx
pop ebx
add esp, 0xc
ret
sub esi, dword [esp + 0x14]
add ecx, edi
add esi, dword [esp + 0x10]
add esi, ebx
pop edi
lea ecx, [ecx + esi*2]
movzx eax, byte [ecx + ebp + 0x10]
movzx ecx, byte [ecx + ebp + 0x11]
pop esi
shl eax, 8
pop ebp
add eax, ecx
pop ebx
add esp, 0xc
ret
cmp eax, 0xc
je 0x1005481c
cmp eax, 0xd
jne 0x100548ac
lea eax, [esi + 0xc]
xor ebx, ebx
push eax
call fcn.10054240
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jle 0x100548ac
mov edx, eax
sub edx, ebx
sar edx, 1
add edx, ebx
lea eax, [edx + edx*2]
shl eax, 2
add edi, eax
mov dword [esp + 0x14], eax
movzx eax, byte [edi + ebp + 0x11]
add edi, ebp
movzx esi, byte [edi + 0x10]
shl esi, 8
add esi, eax
movzx eax, byte [edi + 0x12]
shl esi, 8
add esi, eax
movzx eax, byte [edi + 0x13]
shl esi, 8
add esi, eax
cmp dword [esp + 0x24], esi
jae 0x10054876
mov eax, edx
mov dword [esp + 0x20], eax
jmp 0x100548a4
movzx ecx, byte [edi + 0x14]
movzx eax, byte [edi + 0x15]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 0x16]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 0x17]
mov edi, dword [esp + 0x24]
shl ecx, 8
add ecx, eax
cmp edi, ecx
jbe 0x100548b6
mov eax, dword [esp + 0x20]
lea ebx, [edx + 1]
mov edi, dword [esp + 0x10]
cmp ebx, eax
jl 0x10054832
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ecx, 0x18
add eax, ecx
add eax, ebp
push eax
call fcn.10054240
add esp, 4
cmp word [esp + 0x18], 0xc
jne 0x100548ae
sub eax, esi
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret