Function at 0x4afb30
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x14]
xor eax, eax
push edi
mov ax, word [ecx + 6]
mov edx, eax
mov eax, dword [esp + 0x1c]
and eax, 0xffff
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*2]
lea ebx, [ecx + edx*8 + 8]
mov edx, dword [esi + 0x40c]
push edx
mov ecx, esi
call fcn.00481a50
mov edi, eax
mov eax, dword [esi + 0x5ea]
mov ecx, dword [eax]
mov edx, dword [eax + 0x10]
push ecx
push edx
call fcn.00409040
mov ecx, dword [esp + 0x1c]
add esp, 8
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x41c]
push eax
push ecx
mov ecx, esi
call fcn.004a8400
cmp word [edi + 0x14], 0
mov edx, dword [esi + 0x424]
mov ecx, eax
mov eax, dword [esi + 0x428]
jne 0x4afbe0
sub eax, edx
mov edx, dword [esp + 0x2c]
sub eax, ecx
sub eax, edx
cdq
sub eax, edx
mov edx, dword [ebx + 8]
mov ebx, dword [esp + 0x20]
sar eax, 1
mov dword [ebx], edx
mov ebx, dword [esi + 0x424]
mov edx, dword [esi + 0x410]
mov ebp, dword [edi + 8]
sub ebx, edx
mov edx, dword [esp + 0x24]
sub ebx, ebp
add ebx, eax
add ebx, ecx
mov dword [edx], ebx
jmp 0x4afc17
mov ebp, dword [esp + 0x28]
sub eax, edx
sub eax, ecx
mov ebx, dword [ebx + 8]
sub eax, ebp
cdq
sub eax, edx
mov edx, dword [esp + 0x24]
sar eax, 1
mov dword [edx], ebx
mov ebx, dword [esi + 0x410]
add ebx, dword [edi + 8]
sub ebx, dword [esi + 0x424]
sub ebx, eax
mov eax, dword [edi]
sub ebx, ecx
sub ebx, ebp
add ebx, eax
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
mov ecx, dword [esp + 0x18]
mov ebx, dword [edx]
add ebx, ecx
mov dword [edx], ebx
mov eax, dword [esi + 0x394]
test eax, eax
je 0x4afd9a
cmp word [esi + 0x5f8], 0
jne 0x4afd9a
mov ecx, dword [edi + 0x10]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x18]
push edx
push eax
push ecx
call fcn.004858a0
mov edx, dword [esp + 0x24]
lea eax, [esi + 0x3a8]
push edx
push eax
call fcn.004871f0
add esp, 0x14
mov ebx, eax
mov ecx, esi
push ebx
call fcn.00481a50
mov ebp, eax
push ebx
mov ecx, dword [ebp]
mov dword [esp + 0x18], ecx
call fcn.004952e0
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x40c]
mov bp, word [esi + 0x3ba]
add eax, ecx
push edx
mov dword [esp + 0x24], eax
call fcn.00433030
xor ecx, ecx
and eax, 0xffff
mov cx, word [esi + 0x3bc]
add esp, 8
sub eax, ecx
mov ecx, ebp
cdq
and ecx, 0xffff
idiv ecx
cmp word [esi + 0x5d2], 1
mov ebx, edx
jne 0x4afcc8
sub ebp, ebx
dec ebp
mov ebx, ebp
cmp word [edi + 0x14], 0
jne 0x4afd1c
mov edx, dword [edi + 0x10]
mov ecx, esi
push edx
call fcn.00484790
mov edx, dword [edi + 0x10]
xor ecx, ecx
mov cx, word [eax + 6]
push edx
mov ebp, ecx
mov ecx, esi
call fcn.00484790
and ebx, 0xffff
lea ecx, [eax + ebp*8 + 0x10]
mov ebp, dword [esp + 0x1c]
lea eax, [ebx + ebx*2]
lea edx, [eax + eax*4]
mov eax, dword [ecx + edx*2]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
add edx, eax
mov eax, dword [esp + 0x18]
mov dword [ecx], edx
mov edx, dword [esp + 0x24]
sub eax, ebp
add dword [edx], eax
jmp 0x4afd71
mov ecx, dword [edi + 0x10]
push ecx
mov ecx, esi
call fcn.00484790
xor edx, edx
mov ecx, esi
mov dx, word [eax + 6]
mov eax, dword [edi + 0x10]
push eax
mov ebp, edx
call fcn.00484790
and ebx, 0xffff
lea ecx, [eax + ebp*8 + 0x10]
lea eax, [ebx + ebx*2]
lea edx, [eax + eax*4]
mov eax, dword [ecx + edx*2]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [edx]
add ebp, eax
mov eax, dword [esp + 0x14]
mov dword [edx], ebp
mov ebx, dword [edi]
mov ebp, dword [esp + 0x18]
sub eax, ebx
sub eax, ecx
mov ecx, dword [esp + 0x20]
add eax, ebp
add dword [ecx], eax
cmp word [esi + 0x5c6], 0
je 0x4afd9a
cmp word [edi + 0x14], 0
mov eax, dword [esi + 0x5de]
mov edi, dword [ecx]
jne 0x4afd8e
add edi, eax
jmp 0x4afd90
sub edi, eax
mov dword [ecx], edi
mov ecx, dword [esi + 0x5de]
add dword [edx], ecx
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c