Function at 0x5b4b40
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
push esi
call fcn.005b4970
add esp, 4
test eax, eax
jne 0x5b4da7
mov al, byte [esi + 0x41]
test al, al
jne 0x5b4b77
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword [eax], 0xffffffff
xor eax, eax
pop ebx
add esp, 0x14
ret
mov ebx, dword [esi + 0x18]
xor edi, edi
or ebp, 0xffffffff
mov dword [esp + 0x18], ebx
mov di, word [ebx + 0x14]
mov al, byte [ebx + 3]
dec edi
mov dword [esp + 0x28], 0
test al, al
mov dword [esp + 0x10], edi
jne 0x5b4ba7
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x5b4d5f
test edi, edi
jl 0x5b4cfb
mov ecx, dword [esp + 0x28]
mov word [esi + 0x3a], 0
lea eax, [edi + ecx]
cdq
sub eax, edx
lea edx, [esp + 0x1c]
sar eax, 1
push edx
push esi
mov dword [esi + 0x1c], eax
call fcn.005b44f0
mov al, byte [ebx + 3]
add esp, 8
test al, al
je 0x5b4c2d
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
cmp eax, ecx
jg 0x5b4bfe
jl 0x5b4bf1
cmp edx, dword [esp + 0x30]
jae 0x5b4bfe
mov eax, dword [esi + 0x1c]
or ebp, 0xffffffff
inc eax
mov dword [esp + 0x28], eax
jmp 0x5b4c21
cmp eax, ecx
jl 0x5b4cdc
jg 0x5b4c12
cmp edx, dword [esp + 0x30]
jbe 0x5b4cdc
mov ebp, 1
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esp + 0x10], eax
mov edi, eax
cmp dword [esp + 0x28], edi
jg 0x5b4cfb
jmp 0x5b4baf
lea eax, [esp + 0x14]
push 0
push eax
push esi
call fcn.005b48b0
mov ebp, dword [esp + 0x2c]
mov ecx, eax
mov eax, dword [esp + 0x20]
add esp, 0xc
cdq
cmp edx, ebp
mov edx, dword [esp + 0x1c]
jl 0x5b4c70
jg 0x5b4c56
cmp eax, edx
jb 0x5b4c70
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x34]
push eax
push ecx
mov ecx, dword [esi + 0x10]
push edx
push ecx
call dword [esi + 0xc]
add esp, 0x14
mov ebp, eax
jmp 0x5b4cc5
push edx
call fcn.005a75c0
mov edi, eax
add esp, 4
test edi, edi
je 0x5b4d6c
mov edx, dword [esp + 0x1c]
push edi
push edx
push 0
push esi
call fcn.005b46c0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
mov ebx, eax
mov eax, dword [esp + 0x3c]
push eax
mov eax, dword [esi + 0x10]
push ecx
push edi
push edx
push eax
call dword [esi + 0xc]
push edi
mov ebp, eax
call fcn.005a75f0
add esp, 0x28
test ebx, ebx
jne 0x5b4d79
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
test ebp, ebp
je 0x5b4cde
jge 0x5b4c17
mov eax, dword [esi + 0x1c]
inc eax
mov dword [esp + 0x28], eax
jmp 0x5b4c21
xor ebp, ebp
mov al, byte [ebx + 6]
test al, al
je 0x5b4d83
mov al, byte [ebx + 4]
test al, al
jne 0x5b4d83
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x28], ecx
mov al, byte [ebx + 4]
test al, al
jne 0x5b4d9b
mov eax, dword [esp + 0x28]
xor edx, edx
mov dx, word [ebx + 0x14]
cmp eax, edx
jl 0x5b4d2b
mov ecx, dword [ebx + 0x44]
xor eax, eax
mov al, byte [ebx + 8]
lea edx, [eax + ecx + 8]
push edx
call fcn.005b3860
add esp, 4
jmp 0x5b4d3b
push eax
push ebx
call fcn.005b4580
push eax
call fcn.005b3860
add esp, 0xc
test eax, eax
je 0x5b4d9b
mov ecx, dword [esp + 0x28]
push eax
push esi
mov dword [esi + 0x1c], ecx
mov word [esi + 0x3a], 0
call fcn.005b4a00
add esp, 8
test eax, eax
jne 0x5b4da7
jmp 0x5b4b77
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x14
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x38]
test eax, eax
je 0x5b4da5
pop edi
pop esi
mov dword [eax], 0
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x38]
test eax, eax
je 0x5b4da5
mov dword [eax], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret