Function at 0x47b170
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
test edi, edi
jne 0x47b18a
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
mov dword [ecx + 4], eax
movzx eax, word [edi + 4]
mov word [ecx + 8], ax
movzx eax, word [edi + 6]
mov word [ecx + 0xa], ax
movzx eax, word [edi + 8]
push ebx
push esi
mov esi, eax
shr esi, 1
mov dword [ebp + 8], eax
lea ebx, [ecx + 0xc]
js 0x47b3ca
mov eax, dword [ebx]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or ecx, eax
jge 0x47b1d0
push esi
mov ecx, ebx
call fcn.00403f10
push dword [ebp + 8]
lea eax, [edi + 0xa]
push eax
push dword [ebx]
call fcn.0048cf60
add esp, 0xc
cmp esi, 0xffffffff
jne 0x47b1fe
mov eax, dword [ebx]
test eax, eax
jne 0x47b1f0
xor esi, esi
jmp 0x47b206
push dword [eax - 8]
push eax
call fcn.0048c574
add esp, 8
mov esi, eax
test esi, esi
js 0x47b3ca
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x47b3ca
mov edx, dword [ebp - 4]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov word [eax + esi*2], cx
movzx eax, word [ebx + edi + 0xa]
mov esi, eax
add ebx, 0xc
shr esi, 1
lea edx, [edx + 0x10]
mov dword [ebp + 8], eax
mov dword [ebp - 8], edx
js 0x47b3d4
mov eax, dword [edx]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or ecx, eax
jge 0x47b25b
push esi
mov ecx, edx
call fcn.00403f10
mov edx, dword [ebp - 8]
push dword [ebp + 8]
lea eax, [ebx + edi]
push eax
push dword [edx]
call fcn.0048cf60
add esp, 0xc
cmp esi, 0xffffffff
jne 0x47b28d
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x47b27f
xor esi, esi
jmp 0x47b298
push dword [eax - 8]
push eax
call fcn.0048c574
add esp, 8
mov esi, eax
test esi, esi
js 0x47b3ca
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x10]
cmp esi, dword [eax - 8]
jg 0x47b3ca
add ebx, dword [ebp + 8]
mov dword [eax - 0xc], esi
mov eax, dword [ecx + 0x10]
xor edx, edx
mov word [eax + esi*2], dx
movzx eax, word [ebx + edi]
mov esi, eax
add ebx, 2
shr esi, 1
lea edx, [ecx + 0x14]
mov dword [ebp + 8], eax
mov dword [ebp - 8], edx
js 0x47b3de
mov eax, dword [edx]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or ecx, eax
jge 0x47b2eb
push esi
mov ecx, edx
call fcn.00403f10
mov edx, dword [ebp - 8]
push dword [ebp + 8]
lea eax, [ebx + edi]
push eax
push dword [edx]
call fcn.0048cf60
add esp, 0xc
cmp esi, 0xffffffff
jne 0x47b31d
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x47b30f
xor esi, esi
jmp 0x47b328
push dword [eax - 8]
push eax
call fcn.0048c574
add esp, 8
mov esi, eax
test esi, esi
js 0x47b3ca
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x14]
cmp esi, dword [eax - 8]
jg 0x47b3ca
add ebx, dword [ebp + 8]
mov dword [eax - 0xc], esi
mov eax, dword [ecx + 0x14]
xor edx, edx
mov word [eax + esi*2], dx
movzx eax, word [ebx + edi]
add ebx, 2
mov esi, eax
shr esi, 1
mov dword [ebp - 8], ebx
mov dword [ebp + 8], eax
lea ebx, [ecx + 0x18]
js 0x47b3e8
mov eax, dword [ebx]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or ecx, eax
jge 0x47b378
push esi
mov ecx, ebx
call fcn.00403f10
push dword [ebp + 8]
mov eax, dword [ebp - 8]
add eax, edi
push eax
push dword [ebx]
call fcn.0048cf60
add esp, 0xc
cmp esi, 0xffffffff
jne 0x47b3a8
mov eax, dword [ebx]
test eax, eax
jne 0x47b39a
xor esi, esi
jmp 0x47b3ac
push dword [eax - 8]
push eax
call fcn.0048c574
add esp, 8
mov esi, eax
test esi, esi
js 0x47b3ca
mov ecx, dword [ebx]
cmp esi, dword [ecx - 8]
jg 0x47b3ca
mov dword [ecx - 0xc], esi
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + esi*2], dx
pop esi
pop ebx
lea eax, [edx + 1]
pop edi
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00402400
push 0x80070057
call fcn.00402400
push 0x80070057
call fcn.00402400
push 0x80070057
call fcn.00402400
int3