Function at 0x554780
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
mov edi, dword [esi + 0x14]
movzx ecx, word [eax + 6]
mov eax, ebx
div ecx
mov edx, dword [ebp + 0xc]
imul ecx, eax
add edi, eax
xor eax, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov al, byte [ebp + 0x14]
sub ebx, ecx
mov dword [esi + 0x1c], 0
xor ecx, ecx
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
test al, al
je 0x5547d3
test ebx, ebx
je 0x554888
mov eax, dword [esi + 0x10]
add eax, dword [esi + 8]
cmp eax, edi
jbe 0x5547f9
mov eax, dword [esi + 8]
cmp eax, edi
ja 0x5547f9
mov ecx, edi
sub ecx, eax
mov eax, dword [esi]
mov dword [ebp - 0xc], ecx
movzx eax, word [eax + 6]
imul eax, ecx
mov dword [ebp - 0x10], eax
jmp 0x554871
cmp byte [ebp + 0x14], cl
je 0x554807
mov dword [ebp + 0xc], 1
jmp 0x55480d
lea eax, [ebx + edx]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x18]
add eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x20]
cmp eax, ebx
cmovbe ebx, eax
cmp edi, ebx
jb 0x554825
xor ebx, ebx
xor eax, eax
jmp 0x55486b
mov eax, dword [esi]
xor edx, edx
sub ebx, edi
movzx ecx, word [eax + 6]
mov eax, dword [ebp + 0xc]
dec eax
add eax, ecx
div ecx
mov ecx, dword [esi + 0xc]
cmp ebx, ecx
cmovbe ecx, ebx
cmp eax, ecx
cmovbe ecx, eax
mov eax, dword [esi]
push eax
push ecx
push dword [esi + 4]
mov dword [ebp + 0xc], ecx
push 0
push edi
call fcn.004faf40
add esp, 0x14
test eax, eax
je 0x554a19
mov edx, dword [ebp - 8]
mov ebx, edi
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
mov eax, dword [esi]
mov ebx, dword [esi + 0x10]
sub ebx, ecx
movzx eax, word [eax + 6]
imul ebx, eax
mov al, byte [ebp + 0x14]
sub ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
test edx, edx
je 0x55489d
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0xc], ebx
test al, al
jne 0x5548a8
mov ebx, dword [esi + 0x10]
test ebx, ebx
jne 0x5548ab
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [esi + 0xc]
mov eax, dword [esi]
sub ebx, ecx
mov ecx, dword [ebp + 8]
movzx eax, word [eax + 6]
imul ebx, eax
mov dword [ebp + 0x10], eax
sub ebx, ecx
cmp edx, ebx
jae 0x554904
cmp byte [ebp + 0x14], 0
mov ebx, edx
je 0x554904
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x5548fe
lea eax, [ecx + edx]
xor edx, edx
mov dword [ebp - 0x18], eax
div dword [ebp + 0x10]
test edx, edx
je 0x554904
mov eax, dword [ebp - 0x18]
xor edx, edx
div dword [ebp + 0x10]
mov ecx, esi
add eax, edi
push eax
push 1
push edi
call fcn.005546c0
test eax, eax
jne 0x55489f
mov ecx, dword [ebp + 8]
jmp 0x554904
cmp edx, eax
jbe 0x554904
mov ebx, eax
mov eax, dword [esi + 4]
add eax, ecx
add eax, dword [ebp - 0x10]
cmp byte [ebp + 0x14], 0
push ebx
je 0x554970
push dword [ebp + 0xc]
push eax
call fcn.005c9900
mov edi, dword [esi]
mov edx, dword [ebp + 8]
dec edx
push edi
movzx ecx, word [edi + 6]
mov edi, dword [ebp - 4]
lea eax, [ecx + ebx]
add eax, edx
xor edx, edx
div ecx
mov ecx, dword [esi + 4]
add ecx, dword [ebp - 0x10]
push eax
push ecx
push 0
push edi
mov dword [ebp + 8], eax
call fcn.004fafb0
add esp, 0x20
test eax, eax
je 0x554a19
mov ecx, dword [ebp - 0xc]
mov eax, edi
mov edx, dword [ebp + 8]
sub eax, ecx
mov dword [esi + 8], eax
lea eax, [edx + ecx]
mov dword [esi + 0x10], eax
xor eax, eax
add edi, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
jmp 0x55497f
push eax
push dword [ebp + 0xc]
call fcn.005c9900
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 8]
add dword [esi + 0x1c], ebx
sub edx, ebx
mov dword [ebp - 8], edx
je 0x55489d
mov al, byte [ebp + 0x14]
add dword [ebp + 0xc], ebx
mov dword [ebp + 8], 0
test al, al
jne 0x554a0c
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x20]
sub eax, ecx
add edi, eax
mov eax, dword [esi + 0x14]
add eax, dword [esi + 0x18]
cmp eax, ebx
mov dword [ebp - 4], edi
cmovbe ebx, eax
cmp edi, ebx
jb 0x5549c3
xor eax, eax
xor ebx, ebx
jmp 0x554a03
mov edi, dword [esi]
sub ebx, dword [ebp - 4]
mov dword [ebp + 0x10], ebx
mov ebx, dword [esi + 0xc]
movzx ecx, word [edi + 6]
push edi
mov edi, dword [ebp - 4]
lea eax, [ecx - 1]
add eax, edx
xor edx, edx
div ecx
cmp dword [ebp + 0x10], ebx
cmovbe ebx, dword [ebp + 0x10]
cmp eax, ebx
cmovbe ebx, eax
push ebx
push dword [esi + 4]
push 0
push edi
call fcn.004faf40
add esp, 0x14
test eax, eax
je 0x554a19
mov edx, dword [ebp - 8]
mov eax, edi
mov dword [esi + 0x10], ebx
mov dword [esi + 8], eax
mov al, byte [ebp + 0x14]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
jmp 0x554892
mov dword [esi + 0x10], 0
mov eax, 0x12
pop edi
mov dword [esi + 8], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10