Function at 0x598c90
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x598f11
sub esp, 0x28
mov ecx, dword [esp + 0x34]
cmp ecx, 8
jl 0x598efa
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 0x598ef1
test esi, esi
jl 0x598f0a
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 [0xa8f2d0]
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 0x598ede
mov dword [edi + 4], eax
cmp ecx, 2
jl 0x598ed5
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, [0x719580]
mov dword [esp], edx
shl ecx, 8
or eax, ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00438a70
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 [0xa8f2d0]
test esi, esi
jne 0x598ec2
mov dword [ebx + 0x10], edx
mov edx, dword [esp + 0x34]
add edx, 0xfffffffe
xor esi, esi
jmp 0x598dd8
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 0x598eb5
cmp edx, 4
jl 0x598eac
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 0x598ea3
add edx, 0xfffffffc
cmp edx, ecx
jl 0x598e9a
mov dword [esp + 0x34], edx
mov ebp, dword [ebx + 0x10]
mov ebx, dword [ebx + 0x14]
mov edx, dword [esp + 0x18]
cmp edx, ebx
jae 0x598f03
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 [0xa8f2d0]
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 0x598e88
mov ecx, dword [esp + 0x1c]
mov dword [ebp + ecx*4], eax
jmp 0x598dbb
mov ecx, edi
mov edi, dword [esp + 0x20]
call fcn.0044c9e0
mov edi, ecx
jmp 0x598dbb
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.0044c9e0
mov eax, esi
jmp 0x598db0
mov byte [esp + 0x3c], 0
add esp, 0x28
ret
lea ebx, [edi + 4]
mov esi, edi
mov edi, ebx
call fcn.0044c9e0
mov edi, esi
jmp 0x598d38
mov byte [esp + 0x3c], 0
add esp, 0x28
ret
mov byte [esp + 0x3c], 0
add esp, 0x28
ret
call fcn.004266e0
ud2
call fcn.004267e0
ud2
call fcn.0044b280
jmp fcn.00598c90