Function at 0x47a690
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x48]
sub esp, 0x10
test ecx, ecx
push ebx
push ebp
push edi
je 0x47a914
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x60], 0
movzx eax, word [eax + 4]
mov dword [esi + 0x18], eax
shl eax, 4
add eax, ecx
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x48]
movzx eax, word [eax + 6]
cmp ecx, eax
jge 0x47a979
mov eax, dword [esi + 0x10]
mov edx, dword [eax + 4]
mov ecx, dword [edx + 8]
mov edi, dword [eax]
lea ecx, [ecx + edi - 1]
mov edi, 1
shl edi, cl
imul edi, dword [eax + 8]
mov dword [esi + 0x30], edi
mov edx, dword [edx + 0xc]
mov ecx, dword [eax]
lea ecx, [edx + ecx - 1]
mov edx, 1
shl edx, cl
mov edi, 1
imul edx, dword [eax + 0xc]
mov dword [esi + 0x34], edx
mov ebx, dword [eax + 4]
mov ecx, dword [eax]
add ebx, 0x14
cmp ecx, edi
jle 0x47a767
add ebx, 0xc
mov ecx, dword [ebx - 4]
mov edx, dword [eax]
sub ecx, edi
lea ecx, [ecx + edx - 1]
mov edx, 1
shl edx, cl
mov ecx, dword [esi + 0x30]
imul edx, dword [eax + 8]
cmp ecx, edx
jge 0x47a736
mov edx, ecx
mov dword [esi + 0x30], edx
mov ecx, dword [eax]
mov edx, dword [ebx]
sub ecx, edi
lea ecx, [ecx + edx - 1]
mov edx, 1
shl edx, cl
mov ecx, dword [esi + 0x34]
imul edx, dword [eax + 0xc]
cmp ecx, edx
jl 0x47a757
mov ecx, edx
mov dword [esi + 0x34], ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
inc edi
add ebx, 0x14
cmp edi, edx
jl 0x47a717
mov edx, dword [esi + 0x3c]
mov dword [esi + 0x2c], edx
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x44]
jge 0x47a959
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x40]
mov edx, ecx
cmp edx, eax
mov dword [esi + 0x28], ecx
jge 0x47a942
mov eax, dword [esi + 0x48]
movzx eax, byte [eax + 1]
mov ecx, dword [esi + 0x10]
lea edx, [eax + eax*4]
mov dword [esi + 0x1c], eax
mov eax, dword [ecx + 4]
lea ecx, [eax + edx*4]
mov dword [esi + 0x14], ecx
mov ebp, dword [esi + 0x10]
mov eax, dword [esi + 0x1c]
mov edi, dword [ebp]
cmp eax, edi
jge 0x47a92e
mov ecx, dword [esi + 0x48]
movzx edx, byte [ecx + 2]
cmp eax, edx
jge 0x47a92e
mov ecx, dword [esi + 0x14]
cmp dword [ecx], 0
je 0x47a919
mov ebx, dword [ebp + 8]
sub edi, eax
mov eax, dword [esi + 0x38]
dec edi
mov ecx, edi
shl ebx, cl
lea eax, [ebx + eax - 1]
cdq
idiv ebx
mov ebx, dword [ebp + 0xc]
shl ebx, cl
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x3c]
lea eax, [ebx + eax - 1]
cdq
idiv ebx
cmp ecx, dword [esi + 0x38]
mov ebx, dword [esi + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x10], eax
lea edx, [eax + edi]
jne 0x47a838
mov eax, dword [esp + 0x14]
mov ecx, edi
shl eax, cl
mov ecx, 1
mov dword [esp + 0x18], ecx
mov ecx, edx
mov edx, dword [esp + 0x18]
shl edx, cl
mov ecx, edx
xor edx, edx
div ecx
test edx, edx
jne 0x47a858
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], ecx
lea ecx, [eax + edi]
mov eax, dword [esp + 0x18]
shl eax, cl
mov ecx, eax
mov eax, dword [esi + 0x28]
cdq
idiv ecx
test edx, edx
jne 0x47a919
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x3c]
jne 0x47a880
mov eax, dword [esp + 0xc]
mov ecx, edi
shl eax, cl
mov ecx, 1
mov edx, ecx
mov ecx, dword [ebx + 0xc]
add ecx, edi
shl edx, cl
mov ecx, edx
xor edx, edx
div ecx
test edx, edx
jne 0x47a89f
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xc]
lea ecx, [eax + edi]
mov eax, dword [esp + 0x18]
shl eax, cl
mov ecx, eax
mov eax, dword [esi + 0x2c]
cdq
idiv ecx
test edx, edx
jne 0x47a919
mov eax, dword [ebp + 0xc]
mov ebp, dword [ebp + 8]
mov ecx, edi
shl eax, cl
shl ebp, cl
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x18], eax
lea eax, [eax + ecx - 1]
cdq
idiv dword [esp + 0x18]
mov ecx, dword [ebx + 0xc]
mov edi, eax
mov eax, dword [esp + 0xc]
shr eax, cl
sar edi, cl
mov ecx, dword [esp + 0x10]
sub edi, eax
mov eax, dword [esi + 0x28]
imul edi, dword [ebx + 0x10]
lea eax, [eax + ebp - 1]
cdq
idiv ebp
mov dword [esi + 0x24], 0
sar eax, cl
add edi, eax
mov eax, dword [esp + 0x14]
shr eax, cl
sub edi, eax
mov dword [esi + 0x20], edi
mov eax, dword [esi + 0x24]
cmp eax, dword [esi]
jge 0x47a919
mov ecx, dword [esi + 0x48]
movzx ecx, word [ecx + 8]
cmp eax, ecx
jge 0x47a919
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x20]
mov ecx, dword [ecx + 4]
lea ecx, [ecx + edx*4]
cmp eax, dword [ecx]
jge 0x47a96b
inc dword [esi + 0x24]
jmp 0x47a8f2
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
inc ecx
add eax, 0x14
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x14], eax
jmp 0x47a7a5
mov ecx, dword [esi + 0x28]
mov edi, dword [esi + 0x30]
mov eax, ecx
cdq
idiv edi
sub ecx, edx
add ecx, edi
jmp 0x47a77c
mov ecx, dword [esi + 0x2c]
mov edi, dword [esi + 0x34]
mov eax, ecx
cdq
idiv edi
sub ecx, edx
add ecx, edi
mov dword [esi + 0x2c], ecx
jmp 0x47a76d
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x18], ecx
add eax, 0x10
jmp 0x47a6ba
mov eax, dword [ecx]
pop edi
inc eax
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 0x10
ret
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret