Function at 0x5a4f50
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a51d1
sub esp, 0x28
mov ecx, dword [esp + 0x34]
cmp ecx, 8
jl 0x5a51ba
mov edx, dword [esp + 0x30]
movzx ebx, byte [edx]
shl ebx, 8
movzx ebp, byte [edx + 1]
or ebp, ebx
mov ebx, dword [esp + 0x2c]
mov word [ebx], bp
movzx ebp, byte [edx + 2]
shl ebp, 8
movzx esi, byte [edx + 3]
or esi, ebp
mov word [ebx + 2], si
movzx ebp, byte [edx + 4]
shl ebp, 8
movzx esi, byte [edx + 5]
or esi, ebp
add ecx, 0xfffffffa
cmp ecx, esi
jl 0x5a51b1
test esi, esi
jl 0x5a51ca
mov dword [ebx + 8], esi
mov ebp, dword [esp + 0x38]
add ebp, 0xfffffffa
mov dword [ebx + 0xc], ebp
lea eax, [edx + 6]
mov edi, ebx
mov ebx, dword [0xbc7270]
sub ebp, esi
mov dword [esp + 0x38], ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, esi
lea edx, [edx + ebp + 6]
sub ecx, esi
test ebx, ebx
jne 0x5a519e
mov dword [edi + 4], eax
cmp ecx, 2
jl 0x5a5195
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x30]
movzx ecx, byte [eax + ebp + 6]
movzx eax, byte [eax + ebp + 7]
lea edx, [0x757500]
mov dword [esp], edx
shl ecx, 8
or eax, ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00438c00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x2c]
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffffe
mov ebp, eax
neg eax
sar eax, 0x1f
and eax, 2
mov esi, dword [esp + 0x24]
add eax, esi
mov esi, dword [0xbc7270]
test esi, esi
jne 0x5a5182
mov dword [ebx + 0x10], edx
mov edx, dword [esp + 0x34]
add edx, 0xfffffffe
xor esi, esi
jmp 0x5a5098
mov eax, dword [esp + 0x18]
inc eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
mov ecx, edi
mov ebp, edx
mov edx, ebx
mov ebx, dword [esp + 0x2c]
mov edi, esi
mov esi, eax
mov eax, edi
cmp esi, ecx
jge 0x5a5175
cmp edx, 4
jl 0x5a516c
mov dword [esp + 0x18], esi
mov edi, ecx
movzx ecx, byte [eax]
shl ecx, 0x18
movzx esi, byte [eax + 1]
shl esi, 0x10
or esi, ecx
movzx ecx, byte [eax + 2]
shl ecx, 8
or esi, ecx
movzx ecx, byte [eax + 3]
or ecx, esi
add ebp, 0xfffffffc
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 4
add eax, ebp
test ecx, ecx
jl 0x5a5163
add edx, 0xfffffffc
cmp edx, ecx
jl 0x5a515a
mov dword [esp + 0x34], edx
mov ebp, dword [ebx + 0x10]
mov ebx, dword [ebx + 0x14]
mov edx, dword [esp + 0x18]
cmp edx, ebx
jae 0x5a51c3
lea ebx, [edx + edx*2]
mov dword [esp + 0x1c], ebx
mov dword [ebp + ebx*4 + 4], ecx
mov dword [ebp + ebx*4 + 8], esi
mov edx, dword [0xbc7270]
lea ebx, [ebp + ebx*4]
mov dword [esp + 0x20], ebx
sub esi, ecx
mov dword [esp + 0x38], esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, ecx
add esi, eax
mov ebx, dword [esp + 0x34]
sub ebx, ecx
test edx, edx
jne 0x5a5148
mov ecx, dword [esp + 0x1c]
mov dword [ebp + ecx*4], eax
jmp 0x5a507b
mov ecx, edi
mov edi, dword [esp + 0x20]
call fcn.0044cc20
mov edi, ecx
jmp 0x5a507b
mov byte [esp + 0x3c], 0
add esp, 0x28
ret
mov byte [esp + 0x3c], 0
add esp, 0x28
ret
mov byte [esp + 0x3c], 0
add esp, 0x28
ret
test edx, edx
sete al
mov byte [esp + 0x3c], al
add esp, 0x28
ret
lea edi, [ebx + 0x10]
mov esi, eax
mov eax, edx
call fcn.0044cc20
mov eax, esi
jmp 0x5a5070
mov byte [esp + 0x3c], 0
add esp, 0x28
ret
lea ebx, [edi + 4]
mov esi, edi
mov edi, ebx
call fcn.0044cc20
mov edi, esi
jmp 0x5a4ff8
mov byte [esp + 0x3c], 0
add esp, 0x28
ret
mov byte [esp + 0x3c], 0
add esp, 0x28
ret
call fcn.00426630
ud2
call fcn.00426730
ud2
call fcn.0044b4c0
jmp fcn.005a4f50