Function at 0x4aaf60
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push edi
mov edi, dword [esp + 0x2c]
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
mov ebx, dword [edi + 0x54]
mov dword [esp + 0x30], ebx
mov dword [edi + 0x130], ebp
call fcn.004cb640
mov edx, dword [edi + 0x50]
add esp, 4
test edx, edx
je 0x4aafed
movzx eax, word [edx + 0x40]
test ax, ax
je 0x4aafb6
mov ecx, eax
cmp ecx, dword [edi + 0x13c]
jae 0x4aafaa
mov dword [edi + 0x13c], ecx
movzx eax, word [edx + 0x40]
movzx ecx, ax
mov eax, dword [edi + 0x138]
mov dword [eax + ecx*4], ebp
mov ecx, dword [edx + 8]
movzx eax, word [edx + 6]
sub ecx, dword [edx + 0x14]
push 0
lea eax, [eax + eax*2]
lea eax, [eax + ecx*2]
add eax, 0x14
add eax, dword [edx + 0x18]
shl eax, 2
sub dword [edi - 0x1b0], eax
push eax
mov eax, dword [edi - 0x1b8]
push edx
push dword [edi - 0x1b4]
call eax
add esp, 0x10
mov dword [edi + 0x50], ebp
mov eax, dword [ebx + 0x14]
cmp dword [eax - 4], 0xfffffff2
ja 0x4ab01e
cvttsd2si ebp, qword [eax - 8]
add eax, 0xfffffff8
mov dword [esp + 0xc], ebp
cmp ebp, 0x1d
jne 0x4ab01e
mov dword [ebx + 0x14], eax
lea eax, [ebp - 0x1c]
mov dword [edi + 0xa8], 0x15
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp dword [edi + 0x924], 0
push esi
jne 0x4ab14b
mov eax, dword [edi + 0x2c]
and eax, 0xff
cmp eax, 0x49
je 0x4ab14b
cmp eax, 0x4a
je 0x4ab14b
cmp eax, 0x4b
je 0x4ab14b
cmp eax, 0x4c
je 0x4ab14b
mov ecx, dword [edi + 0x928]
movzx edx, cx
test ecx, ecx
jne 0x4ab13e
mov ebx, dword [edi + 0x28]
cmp ebp, 6
jne 0x4ab090
lea eax, [ebx + 4]
mov ecx, 1
mov ebx, dword [esp + 0x30]
shr eax, 2
and eax, 0x3f
mov word [edi + eax*2 + 0x968], cx
jmp 0x4ab14b
mov ebp, dword [edi + 0x24]
lea eax, [edi + 0x688]
mov ecx, 0x48
xor esi, esi
cmp dword [eax], ebx
je 0x4ab0f4
inc esi
add eax, 8
cmp esi, 0x40
jb 0x4ab0a0
mov esi, dword [edi + 0x888]
lea eax, [esi + 1]
and eax, 0x3f
mov dword [edi + 0x888], eax
mov dword [edi + esi*8 + 0x688], ebx
mov eax, dword [esp + 0x10]
mov word [edi + esi*8 + 0x68e], ax
lea eax, [ebx + 4]
mov ebx, dword [esp + 0x30]
shr eax, 2
and eax, 0x3f
movzx ecx, cx
mov word [edi + esi*8 + 0x68c], cx
mov word [edi + eax*2 + 0x968], cx
jmp 0x4ab14b
lea ecx, [edi - 0xb8]
call fcn.004ac0c0
movzx ecx, word [edi + esi*8 + 0x68c]
and eax, 0xf
lea ecx, [eax + ecx*2]
cmp ecx, 0xea60
jbe 0x4ab0c6
mov eax, dword [ebx]
cmp al, 0x46
jne 0x4ab130
movzx eax, word [ebx + 6]
mov byte [ebx], 0x45
mov byte [ebx + eax*4 - 0x1fffc], 0x58
mov ebx, dword [esp + 0x30]
jmp 0x4ab14b
inc al
mov byte [ebx], al
or byte [ebp + 0x25], 0x10
mov ebx, dword [esp + 0x30]
jmp 0x4ab14b
mov eax, dword [edi + 0x138]
mov eax, dword [eax + ecx*4]
mov word [eax + 0x42], dx
movzx ebp, word [edi + 0x40]
mov dword [esp + 0x28], ebp
test ebp, ebp
je 0x4ab2fa
mov eax, dword [ebx + 0x14]
sub eax, dword [ebx + 0x1c]
mov dword [esp + 0x20], eax
xor eax, eax
mov word [edi + 0x42], ax
mov byte [edi + 0x4c], al
mov eax, dword [ebx + 8]
test byte [eax + 0x57], 2
je 0x4ab2d9
push 0x96c8a339
push ebx
call fcn.004c6610
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
je 0x4ab2d9
mov esi, dword [ebx + 0x14]
mov eax, dword [ebx + 0x1c]
push 5
push str.abort
lea ecx, [esi + 8]
mov dword [esp + 0x20], eax
push ebx
mov dword [esp + 0x20], 0
mov dword [ebx + 0x14], ecx
call fcn.004a56c0
mov dword [esi], eax
add esp, 0xc
mov dword [esi + 4], 0xfffffffb
mov ecx, dword [ebx + 0x14]
movd xmm0, ebp
cvtdq2pd xmm0, xmm0
lea eax, [ecx + 8]
mov dword [ebx + 0x14], eax
movsd qword [ecx], xmm0
mov eax, dword [edi + 0x54]
mov ecx, dword [edi + 0x58]
mov edx, dword [eax + 0x10]
mov eax, dword [edx - 8]
sub edx, 8
cmp byte [eax + 6], 0
je 0x4ab256
mov ecx, dword [edx + 4]
mov ebx, edx
mov esi, ecx
mov ebp, ecx
and esi, 0xfffffff8
and ebp, 3
jne 0x4ab210
movzx eax, byte [ecx - 3]
lea eax, [eax*8 + 8]
sub ebx, eax
jmp 0x4ab212
sub ebx, esi
cmp ebx, dword [esp + 0x18]
jbe 0x4ab262
mov eax, ecx
and al, 7
cmp al, 2
jne 0x4ab225
mov eax, dword [edx - 4]
jmp 0x4ab227
mov eax, ecx
add eax, 0xfffffffc
mov dword [esp + 0x1c], eax
test ebp, ebp
jne 0x4ab244
movzx ecx, byte [ecx - 3]
mov eax, 0xfffffff8
shl ecx, 3
sub eax, ecx
add edx, eax
jmp 0x4ab246
sub edx, esi
mov eax, dword [edx]
cmp byte [eax + 6], 0
jne 0x4ab1f0
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
sub ecx, dword [eax + 0x10]
sar ecx, 2
mov dword [esp + 0x14], ecx
jmp 0x4ab266
mov ebx, dword [esp + 0x30]
mov ecx, dword [ebx + 0x14]
movd xmm0, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
push dword [esp + 0x24]
lea eax, [ecx + 8]
mov dword [ebx + 0x14], eax
mov eax, dword [edx]
mov dword [ecx], eax
mov dword [ecx + 4], 0xfffffff7
mov ecx, dword [ebx + 0x14]
cvtdq2pd xmm0, xmm0
push ebx
lea eax, [ecx + 8]
mov dword [ebx + 0x14], eax
movsd qword [ecx], xmm0
mov edx, dword [ebx + 0x14]
lea eax, [edx + 8]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax + esi - 8]
mov eax, dword [eax + esi - 4]
mov dword [edx + 4], eax
mov dword [edx], ecx
mov edx, dword [ebx + 0x14]
lea eax, [edx + 8]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x950]
mov ecx, dword [edi + 0x954]
mov dword [edx], eax
mov dword [edx + 4], ecx
call fcn.004c6570
mov ebp, dword [esp + 0x30]
add esp, 8
mov eax, dword [edi + 0x138]
mov dword [eax + ebp*4], 0
cmp ebp, dword [edi + 0x13c]
jae 0x4ab2f4
mov dword [edi + 0x13c], ebp
xor eax, eax
mov word [edi + 0x40], ax
add dword [ebx + 0x14], 0xfffffff8
mov eax, dword [esp + 0x10]
pop esi
cmp eax, 0xe
jne 0x4ab343
mov eax, dword [edi + 0x58]
cmp byte [eax], 0x49
je 0x4ab351
push edi
mov dword [edi + 0x924], 0
mov dword [edi + 0x928], 0
mov dword [edi + 0xa8], 0x11
call fcn.004ab6c0
add esp, 4
mov eax, 1
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp eax, 0x1b
jne 0x4ab351
push ebx
call fcn.004aab30
add esp, 4
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret