Function at 0x499450
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
push edi
mov dword [esp + 0x20], esi
mov ebx, dword [edi + 0x54]
mov dword [edi + 0x130], esi
call fcn.00477490
mov edx, dword [edi + 0x50]
add esp, 4
test edx, edx
je 0x4994d9
movzx eax, word [edx + 0x40]
test ax, ax
je 0x4994a2
mov ecx, eax
cmp ecx, dword [edi + 0x13c]
jae 0x499496
mov dword [edi + 0x13c], ecx
movzx eax, word [edx + 0x40]
movzx ecx, ax
mov eax, dword [edi + 0x138]
mov dword [eax + ecx*4], esi
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], esi
mov eax, dword [ebx + 0x14]
cmp dword [eax - 4], 0xfffffff2
ja 0x49950a
cvttsd2si esi, qword [eax - 8]
add eax, 0xfffffff8
mov dword [esp + 0x1c], esi
cmp esi, 0x1d
jne 0x49950a
mov dword [ebx + 0x14], eax
lea eax, [esi - 0x1c]
mov dword [edi + 0xa8], 0x14
pop edi
pop esi
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x924], 0
push ebp
jne 0x499620
mov eax, dword [edi + 0x2c]
and eax, 0xff
cmp eax, 0x49
je 0x499620
cmp eax, 0x4a
je 0x499620
cmp eax, 0x4b
je 0x499620
cmp eax, 0x4c
je 0x499620
mov ecx, dword [edi + 0x928]
test ecx, ecx
jne 0x499613
mov ebp, dword [edi + 0x28]
cmp esi, 6
jne 0x499575
lea eax, [ebp + 4]
mov ecx, 1
shr eax, 2
and eax, 0x3f
mov word [edi + eax*2 + 0x968], cx
jmp 0x499620
mov eax, dword [edi + 0x24]
mov ecx, 0x48
mov dword [esp + 0x10], eax
xor esi, esi
lea eax, [edi + 0x688]
nop dword [eax]
cmp dword [eax], ebp
je 0x4995e0
inc esi
add eax, 8
cmp esi, 0x40
jb 0x499590
mov esi, dword [edi + 0x888]
lea eax, [esi + 1]
and eax, 0x3f
mov dword [edi + 0x888], eax
mov dword [edi + esi*8 + 0x688], ebp
mov eax, dword [esp + 0x20]
mov word [edi + esi*8 + 0x68e], ax
lea eax, [ebp + 4]
shr eax, 2
and eax, 0x3f
movzx ecx, cx
mov word [edi + esi*8 + 0x68c], cx
mov word [edi + eax*2 + 0x968], cx
jmp 0x499620
lea ecx, [edi - 0xb8]
call fcn.00489a40
movzx ecx, word [edi + esi*8 + 0x68c]
and eax, 0xf
lea ecx, [eax + ecx*2]
cmp ecx, 0xea60
jbe 0x4995b6
mov al, byte [ebp]
inc al
mov byte [ebp], al
mov eax, dword [esp + 0x10]
or byte [eax + 0x25], 0x10
jmp 0x499620
mov eax, dword [edi + 0x138]
mov eax, dword [eax + ecx*4]
mov word [eax + 0x42], cx
movzx ebp, word [edi + 0x40]
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x499784
mov eax, dword [ebx + 0x14]
sub eax, dword [ebx + 0x1c]
mov dword [esp + 0x10], 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 0x499763
push 0x96c8a339
push ebx
call fcn.0049a890
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x499763
mov esi, dword [ebx + 0x14]
push 5
push 0x50adc8
push ebx
lea ecx, [esi + 8]
mov dword [ebx + 0x14], ecx
call fcn.00493120
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 ebp, dword [edi + 0x58]
mov edx, dword [eax + 0x10]
sub edx, 8
mov esi, dword [edx]
cmp byte [esi + 6], 0
je 0x4996ee
mov ecx, dword [edx + 4]
mov eax, ecx
and al, 7
cmp al, 2
jne 0x4996c5
mov eax, dword [edx - 4]
jmp 0x4996c7
mov eax, ecx
lea ebp, [eax - 4]
test cl, 3
jne 0x4996e1
movzx ecx, byte [ecx - 3]
mov eax, 0xfffffff8
shl ecx, 3
sub eax, ecx
add edx, eax
jmp 0x4996e6
and ecx, 0xfffffff8
sub edx, ecx
mov esi, dword [edx]
cmp byte [esi + 6], 0
jne 0x4996b5
mov ecx, dword [ebx + 0x14]
push dword [esp + 0x14]
push ebx
lea eax, [ecx + 8]
mov dword [ebx + 0x14], eax
mov dword [ecx], esi
mov dword [ecx + 4], 0xfffffff7
mov ecx, dword [ebx + 0x14]
lea eax, [ecx + 8]
mov dword [ebx + 0x14], eax
sub ebp, dword [esi + 0x10]
mov esi, dword [esp + 0x18]
sar ebp, 2
movd xmm0, ebp
cvtdq2pd xmm0, xmm0
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.0049a7f0
mov ebp, dword [esp + 0x20]
add esp, 8
mov eax, dword [edi + 0x138]
mov dword [eax + ebp*4], 0
cmp ebp, dword [edi + 0x13c]
jae 0x49977e
mov dword [edi + 0x13c], ebp
xor eax, eax
mov word [edi + 0x40], ax
add dword [ebx + 0x14], 0xfffffff8
mov eax, dword [esp + 0x20]
pop ebp
cmp eax, 0xe
jne 0x4997cd
mov eax, dword [edi + 0x58]
cmp byte [eax], 0x49
je 0x4997db
push edi
mov dword [edi + 0x924], 0
mov dword [edi + 0x928], 0
mov dword [edi + 0xa8], 0x11
call fcn.00499de0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xc
ret
cmp eax, 0x1b
jne 0x4997db
push ebx
call fcn.00498ed0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret