Function at 0x662440
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [edi + 0xc]
mov ebp, eax
mov edx, dword [edi + 8]
mov ebx, edx
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
or ecx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], eax
or eax, eax
mov dword [esp + 0x18], eax
or eax, 0xffffffff
mov dword [esp + 0x20], ebx
or esi, eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], eax
nop
mov eax, dword [esp + 0x1c]
add edx, 0xffff0000
mov dword [esp + 0x2c], edx
adc eax, 0xffffffff
mov dword [esp + 0x1c], eax
test eax, eax
jg 0x6624c8
jl 0x6624af
test edx, edx
jae 0x6624c8
xorps xmm0, xmm0
movlpd qword [esp + 0x40], xmm0
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], edx
mov ecx, dword [edi]
test ecx, ecx
je 0x66250b
mov eax, dword [edi + 0x2c4]
test eax, eax
je 0x662504
push 0
push dword [esp + 0x20]
push edx
push ecx
call eax
add esp, 0x10
cmp eax, 0xffffffff
je 0x662504
mov eax, dword [esp + 0x2c]
lea ecx, [edi + 0x18]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0xc], eax
call fcn.006587f0
xor eax, eax
jmp 0x662510
mov eax, 0xffffff80
jmp 0x662510
mov eax, 0xffffff7f
cdq
mov ecx, eax
or eax, edx
jne 0x662740
cmp dword [edi + 0xc], ebp
jg 0x6626d7
jl 0x662530
cmp dword [edi + 8], ebx
jae 0x6626d7
nop
sub ebx, dword [edi + 8]
lea edx, [esp + 0x50]
mov ecx, edi
sbb ebp, dword [edi + 0xc]
push ebp
push ebx
call fcn.00662200
mov ebp, eax
add esp, 8
mov ebx, edx
cmp ebp, 0xffffff80
jne 0x662558
cmp ebx, 0xffffffff
je 0x6626f1
test ebx, ebx
jl 0x6626cf
jg 0x66256a
test ebp, ebp
jb 0x6626cf
mov esi, dword [esp + 0x50]
mov dword [esp + 0x34], ebx
movzx ecx, byte [esi + 0x11]
movzx eax, byte [esi + 0x10]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xe]
shl ecx, 8
or eax, ecx
cdq
mov dword [esp + 0x18], eax
movzx eax, byte [esi + 0xd]
mov dword [esp + 0x40], edx
cdq
mov ecx, eax
mov eax, edx
shld eax, ecx, 8
mov dword [esp + 0x14], eax
movzx eax, byte [esi + 0xc]
cdq
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x14]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0x14], eax
movzx eax, byte [esi + 0xb]
cdq
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x14]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0x14], eax
movzx eax, byte [esi + 0xa]
cdq
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x14]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0x14], eax
movzx eax, byte [esi + 9]
cdq
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x14]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0x14], eax
movzx eax, byte [esi + 8]
cdq
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x14]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0x14], eax
movzx eax, byte [esi + 7]
cdq
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x14]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0x14], eax
movzx eax, byte [esi + 6]
mov esi, dword [esp + 0x14]
cdq
shl ecx, 8
or ecx, eax
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x68]
or esi, edx
mov dword [esp + 0x38], ecx
mov eax, dword [eax]
cdq
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x18]
cmp edx, eax
jne 0x662681
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x40], eax
jne 0x662681
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebx
mov dword [eax], ecx
mov dword [eax + 4], esi
mov ebp, dword [esp + 0x4c]
mov eax, ebp
mov ebx, dword [esp + 0x64]
mov ecx, ebx
test ebp, ebp
je 0x6626a1
test ebx, ebx
je 0x6626a1
dec ecx
cmp dword [eax], edx
je 0x6626b1
add eax, 4
test ecx, ecx
jne 0x662695
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
cmp dword [edi + 0xc], ebp
jl 0x662530
jg 0x6626db
cmp dword [edi + 8], ebx
jb 0x662530
jmp 0x6626db
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
and eax, dword [esp + 0x34]
cmp eax, 0xffffffff
jne 0x662701
mov edx, dword [esp + 0x2c]
jmp 0x662490
mov eax, 0xffffff80
or edx, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov ecx, dword [esp + 0x30]
test ecx, ecx
jl 0x66271d
mov eax, dword [esp + 0x24]
jg 0x662713
test eax, eax
jb 0x66271d
mov edx, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [eax], edx
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x50
ret