Function at 0x5b9de0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [ebp + 0x18]
mov ebx, dword [esi + 4]
test ebx, ebx
push edi
mov edi, dword [esi]
mov dword [esp + 0x10], esi
jne 0x5b9e0c
push ebp
call dword [esi + 0xc]
test eax, eax
je 0x5ba00a
mov edi, dword [esi]
mov ebx, dword [esi + 4]
xor eax, eax
mov ah, byte [edi]
dec ebx
inc edi
test ebx, ebx
mov dword [esp + 0x28], eax
jne 0x5b9e2f
push ebp
call dword [esi + 0xc]
test eax, eax
je 0x5ba00a
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov eax, dword [esp + 0x28]
movzx ecx, byte [edi]
add eax, ecx
dec ebx
sub eax, 2
inc edi
test eax, eax
mov dword [esp + 0x28], eax
jle 0x5b9fe7
test ebx, ebx
jne 0x5b9e5a
push ebp
call dword [esi + 0xc]
test eax, eax
je 0x5ba00a
mov edi, dword [esi]
mov ebx, dword [esi + 4]
movzx esi, byte [edi]
mov eax, dword [ebp]
mov ecx, esi
sar ecx, 4
mov dword [eax + 0x14], 0x51
push 1
and esi, 0xf
mov dword [eax + 0x18], esi
dec ebx
push ebp
inc edi
mov dword [esp + 0x24], ecx
mov dword [eax + 0x1c], ecx
call dword [eax + 4]
cmp esi, 4
jl 0x5b9e96
mov eax, dword [ebp]
mov dword [eax + 0x14], 0x1f
push ebp
mov dword [eax + 0x18], esi
call dword [eax]
mov eax, dword [ebp + esi*4 + 0xa8]
test eax, eax
jne 0x5b9eae
push ebp
call fcn.005d31b0
mov dword [ebp + esi*4 + 0xa8], eax
mov edx, dword [ebp + esi*4 + 0xa8]
mov esi, 0x649d00
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5b9f11
test ebx, ebx
mov esi, dword [esp + 0x10]
jne 0x5b9ee3
push ebp
call dword [esi + 0xc]
test eax, eax
je 0x5ba00a
mov edi, dword [esi]
mov ebx, dword [esi + 4]
xor eax, eax
mov ah, byte [edi]
dec ebx
inc edi
test ebx, ebx
mov dword [esp + 0x14], eax
jne 0x5b9f02
push ebp
call dword [esi + 0xc]
test eax, eax
je 0x5ba00a
mov edi, dword [esi]
mov ebx, dword [esi + 4]
movzx ecx, byte [edi]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add edx, ecx
jmp 0x5b9f2d
test ebx, ebx
jne 0x5b9f2a
mov ebx, dword [esp + 0x10]
push ebp
call dword [ebx + 0xc]
test eax, eax
je 0x5ba00a
mov edi, dword [ebx]
mov ebx, dword [ebx + 4]
movzx edx, byte [edi]
mov ecx, dword [esi]
mov eax, dword [esp + 0x20]
dec ebx
add esi, 4
inc edi
cmp esi, 0x649e00
mov dword [esp + 0x14], edx
mov word [eax + ecx*2], dx
mov dword [esp + 0x18], esi
jl 0x5b9ec2
mov ecx, dword [ebp]
cmp dword [ecx + 0x68], 2
jl 0x5b9fb9
lea esi, [eax + 4]
mov dword [esp + 0x18], 8
movzx edx, word [esi - 4]
mov eax, dword [ebp]
mov dword [eax + 0x18], edx
movzx ecx, word [esi - 2]
mov dword [eax + 0x1c], ecx
movzx edx, word [esi]
mov dword [eax + 0x20], edx
movzx ecx, word [esi + 2]
mov dword [eax + 0x24], ecx
movzx edx, word [esi + 4]
mov dword [eax + 0x28], edx
movzx ecx, word [esi + 6]
mov dword [eax + 0x2c], ecx
movzx edx, word [esi + 8]
mov dword [eax + 0x30], edx
movzx ecx, word [esi + 0xa]
push 2
mov dword [eax + 0x34], ecx
push ebp
mov dword [eax + 0x14], 0x5d
call dword [eax + 4]
mov eax, dword [esp + 0x18]
add esi, 0x10
dec eax
mov dword [esp + 0x18], eax
jne 0x5b9f64
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
sub ecx, 0x41
test eax, eax
mov dword [esp + 0x28], ecx
je 0x5b9fd5
mov eax, ecx
sub eax, 0x40
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
test eax, eax
mov esi, dword [esp + 0x10]
jg 0x5b9e45
test eax, eax
je 0x5b9ff6
mov eax, dword [ebp]
push ebp
mov dword [eax + 0x14], 0xb
call dword [eax]
mov dword [esi], edi
pop edi
mov dword [esi + 4], ebx
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4