Function at 0x4356c0
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 0x435713
test ebx, ebx
je 0x4357c8
mov eax, dword [esi + 0x10]
add eax, dword [esi + 8]
cmp eax, edi
jbe 0x435739
mov eax, dword [esi + 8]
cmp eax, edi
ja 0x435739
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 0x4357b1
cmp byte [ebp + 0x14], cl
je 0x435747
mov dword [ebp + 0xc], 1
jmp 0x43574d
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 0x435765
xor ebx, ebx
xor eax, eax
jmp 0x4357ab
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.00416f60
add esp, 0x14
test eax, eax
je 0x435959
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 0x4357dd
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0xc], ebx
test al, al
jne 0x4357e8
mov ebx, dword [esi + 0x10]
test ebx, ebx
jne 0x4357eb
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 0x435844
cmp byte [ebp + 0x14], 0
mov ebx, edx
je 0x435844
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x43583e
lea eax, [ecx + edx]
xor edx, edx
mov dword [ebp - 0x18], eax
div dword [ebp + 0x10]
test edx, edx
je 0x435844
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.00435600
test eax, eax
jne 0x4357df
mov ecx, dword [ebp + 8]
jmp 0x435844
cmp edx, eax
jbe 0x435844
mov ebx, eax
mov eax, dword [esi + 4]
add eax, ecx
add eax, dword [ebp - 0x10]
cmp byte [ebp + 0x14], 0
push ebx
je 0x4358b0
push dword [ebp + 0xc]
push eax
call fcn.004448a0
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.00416f80
add esp, 0x20
test eax, eax
je 0x435959
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 0x4358bf
push eax
push dword [ebp + 0xc]
call fcn.004448a0
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 0x4357dd
mov al, byte [ebp + 0x14]
add dword [ebp + 0xc], ebx
mov dword [ebp + 8], 0
test al, al
jne 0x43594c
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 0x435903
xor eax, eax
xor ebx, ebx
jmp 0x435943
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.00416f60
add esp, 0x14
test eax, eax
je 0x435959
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 0x4357d2
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