Function at 0x10054af0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
mov ebp, dword [eax + 4]
push edi
mov edi, dword [eax + 0x30]
mov dword [esp + 0x14], edi
lea esi, [edi + ebp]
push esi
call fcn.10054810
movzx eax, ax
add esp, 4
mov dword [esp + 0x18], eax
test ax, ax
jne 0x10054b48
lea eax, [esi + 2]
push eax
call fcn.10054810
mov ecx, dword [esp + 0x2c]
add esp, 4
movzx eax, ax
sub eax, 6
cmp ecx, eax
jge 0x10054dc5
movzx eax, byte [esi + ecx + 6]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp eax, 6
jne 0x10054ba7
lea eax, [esi + 6]
push eax
call fcn.10054810
mov ebx, dword [esp + 0x2c]
add esp, 4
movzx eax, ax
mov dword [esp + 0x24], eax
cmp ebx, eax
jb 0x10054dc5
lea eax, [esi + 8]
push eax
call fcn.10054810
mov ecx, dword [esp + 0x28]
add esp, 4
movzx eax, ax
add eax, ecx
cmp ebx, eax
jae 0x10054dc5
sub ebx, ecx
lea eax, [ebx + 5]
lea eax, [edi + eax*2]
add eax, ebp
push eax
call fcn.10054810
add esp, 4
movzx eax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp eax, 2
je 0x10054dc5
cmp eax, 4
jne 0x10054d4c
lea eax, [esi + 6]
push eax
call fcn.10054810
shr ax, 1
movzx eax, ax
mov dword [esp + 0x28], eax
lea eax, [esi + 8]
push eax
call fcn.10054810
shr ax, 1
movzx eax, ax
mov dword [esp + 0x20], eax
lea eax, [esi + 0xa]
push eax
call fcn.10054810
add edi, 0xe
movzx ebx, ax
add esp, 0xc
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x28], 0xffff
mov dword [esp + 0x1c], edi
jg 0x10054dc5
lea eax, [esi + 0xc]
push eax
call fcn.10054810
movzx eax, ax
shr eax, 1
lea esi, [edi + eax*2]
lea eax, [esi + ebp]
push eax
call fcn.10054810
add esp, 8
movzx eax, ax
cmp dword [esp + 0x28], eax
cmovge edi, esi
sub edi, 2
test bx, bx
je 0x10054c71
mov bx, word [esp + 0x18]
nop dword [eax + eax]
shr bx, 1
movzx eax, bx
lea esi, [edi + eax*2]
lea eax, [esi + ebp]
push eax
call fcn.10054810
movzx eax, ax
add esp, 4
cmp dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
cmovg edi, esi
add eax, 0xffff
mov dword [esp + 0x10], eax
test ax, ax
jne 0x10054c40
sub edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
add edi, 2
mov ebx, dword [esp + 0x14]
movzx eax, ax
add eax, 8
shr edi, 1
movzx esi, di
add eax, esi
mov dword [esp + 0x10], esi
lea eax, [ebx + eax*2]
add eax, ebp
push eax
call fcn.10054810
mov edi, dword [esp + 0x2c]
add esp, 4
movzx eax, ax
mov dword [esp + 0x1c], eax
cmp edi, eax
jl 0x10054dc5
lea eax, [ebx + 0xe]
lea eax, [eax + esi*2]
add eax, ebp
push eax
call fcn.10054810
movzx eax, ax
add esp, 4
cmp edi, eax
jg 0x10054dc5
mov ecx, dword [esp + 0x24]
movzx eax, cx
lea esi, [eax + eax*2]
mov eax, dword [esp + 0x10]
add eax, 8
add eax, esi
lea eax, [ebx + eax*2]
add eax, ebp
push eax
call fcn.10054810
movzx eax, ax
add esp, 4
test ax, ax
jne 0x10054d24
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
movzx ecx, dx
lea eax, [eax + ecx*2]
lea eax, [eax + 8]
lea eax, [ebx + eax*2]
add eax, ebp
push eax
call fcn.100547f0
add esp, 4
add ax, di
movzx eax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
sub esi, dword [esp + 0x1c]
add eax, ebx
add esi, dword [esp + 0x10]
add esi, edi
lea eax, [eax + esi*2]
add eax, 0x10
add eax, ebp
push eax
call fcn.10054810
add esp, 4
movzx eax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp eax, 0xc
je 0x10054d56
cmp eax, 0xd
jne 0x10054dc5
lea eax, [esi + 0xc]
xor edi, edi
push eax
call fcn.100547c0
mov ebx, eax
add esp, 4
test ebx, ebx
jle 0x10054dc5
nop word [eax + eax]
mov esi, ebx
sub esi, edi
sar esi, 1
add esi, edi
lea eax, [esi + esi*2]
shl eax, 2
mov dword [esp + 0x1c], eax
add eax, dword [esp + 0x14]
add eax, ebp
mov dword [esp + 0x24], eax
add eax, 0x10
push eax
call fcn.100547c0
add esp, 4
mov dword [esp + 0x10], eax
cmp dword [esp + 0x28], eax
jae 0x10054da6
mov ebx, esi
jmp 0x10054dc1
mov eax, dword [esp + 0x24]
add eax, 0x14
push eax
call fcn.100547c0
mov edi, dword [esp + 0x2c]
add esp, 4
cmp edi, eax
jbe 0x10054dcf
lea edi, [esi + 1]
cmp edi, ebx
jl 0x10054d70
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add ecx, 0x18
add eax, ecx
add eax, ebp
push eax
call fcn.100547c0
add esp, 4
cmp word [esp + 0x18], 0xc
jne 0x10054dc7
sub eax, dword [esp + 0x10]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret