Function at 0x488340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
mov eax, dword [0x4fe040]
xor eax, esp
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x90]
mov eax, ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x9c]
shl eax, 0x10
mov dword [esp + 0x10], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], eax
test edi, edi
je 0x4887eb
mov esi, dword [esp + 0xa4]
test esi, esi
je 0x4887eb
lea eax, [ecx - 2]
cmp eax, 0x1e
ja 0x4887eb
mov eax, dword [edi]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x4883b3
mov dword [esp + 0x10], 6
jmp 0x4887ba
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi]
imul eax, dword [esi + 4]
lea eax, [eax + eax*2]
shl eax, 2
push eax
push dword [esp + 0x2c]
call fcn.00401a5a
add esp, 0xc
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x10], 0
jne 0x4887b6
mov ecx, dword [edi + 4]
mov edi, dword [esi + 4]
mov ebx, dword [esi]
mov ebp, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ebp
test edi, edi
je 0x4887e1
test ebx, ebx
je 0x4887e1
test ecx, ecx
je 0x4886b5
mov esi, dword [0x4f9ec8]
mov ebx, dword [0x4f9ec4]
mov ebp, dword [0x4f9f14]
movq xmm1, qword [0x4f9f0c]
nop dword [eax]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x48869a
nop
movups xmm0, xmmword [ecx]
sub esp, 0x28
mov eax, esp
movups xmmword [eax], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ecx + 0x20]
movq qword [eax + 0x20], xmm0
lea eax, [esp + 0xa0]
push eax
call fcn.00486ce0
add esp, 0x2c
movups xmm0, xmmword [eax]
movd eax, xmm0
movups xmmword [esp + 0x5c], xmm0
mov ecx, dword [esp + 0x68]
add eax, 0xffffffc1
add ecx, 0x3f
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
sub eax, dword [esp + 0xa0]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x64]
lea eax, [eax + 0x3f]
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
add eax, dword [esp + 0xa0]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x60]
lea eax, [eax - 0x3f]
cdq
and edx, 0x3f
add edx, eax
mov eax, dword [esp + 0xa0]
sar edx, 6
sub edx, eax
mov dword [esp + 0x28], edx
mov ecx, ecx
test ecx, ecx
jns 0x4884d8
add ecx, 0x3f
sar ecx, 6
add eax, ecx
mov dword [esp + 0x44], eax
cmp edx, eax
jge 0x488687
mov eax, edx
mov ecx, edx
imul eax, edi
shl ecx, 6
add ecx, 0x20
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], eax
nop
mov edi, dword [esp + 0x58]
cmp edi, dword [esp + 0x54]
jge 0x488667
mov eax, edi
shl eax, 6
add eax, 0x20
mov dword [esp + 0x30], eax
nop word [eax + eax]
mov dword [esp + 0x60], esi
movq qword [esp + 0x48], xmm1
mov dword [esp + 0x50], ebp
test edi, edi
js 0x488651
cmp edi, dword [esp + 0x2c]
jge 0x488651
cmp ecx, 0x20
jl 0x488651
cmp edx, dword [esp + 0x20]
jge 0x488651
lea edx, [esp + 0x48]
push edx
push ecx
push eax
push dword [esp + 0x28]
call fcn.00488230
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4887b6
cmp dword [esp + 0x90], 1
jne 0x488580
neg byte [esp + 0x50]
mov ecx, dword [esp + 0x48]
cmp ecx, dword [esp + 0x40]
jg 0x48862b
cmp byte [esp + 0x95], 0
je 0x48859e
mov eax, dword [esp + 0x18]
jmp 0x4885ac
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x28]
dec eax
imul eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
add eax, edi
lea eax, [eax + eax*2]
cmp byte [edx + eax*4 + 8], 0
lea esi, [edx + eax*4]
je 0x48861a
mov edx, dword [esi]
mov eax, edx
sub eax, ecx
jns 0x4885cb
mov eax, ecx
sub eax, edx
cmp eax, 0x20
jg 0x488616
movq xmm0, qword [esp + 0x48]
sub esp, 0xc
mov eax, dword [esp + 0x5c]
mov ecx, esp
sub esp, 0xc
movq qword [ecx], xmm0
movq xmm0, qword [esi]
mov dword [ecx + 8], eax
mov ecx, esp
mov eax, dword [esi + 8]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea eax, [esp + 0x84]
push eax
call fcn.00488070
add esp, 0x1c
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
jmp 0x488628
cmp edx, ecx
jle 0x48862b
movq xmm0, qword [esp + 0x48]
mov eax, dword [esp + 0x50]
movq qword [esi], xmm0
mov dword [esi + 8], eax
mov esi, dword [0x4f9ec8]
mov ebx, dword [0x4f9ec4]
mov ebp, dword [0x4f9f14]
movq xmm1, qword [0x4f9f0c]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
inc edi
add eax, 0x40
mov dword [esp + 0x30], eax
cmp edi, dword [esp + 0x54]
jl 0x488520
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
inc edx
add ecx, 0x40
mov dword [esp + 0x28], edx
add eax, edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], eax
cmp edx, dword [esp + 0x44]
jl 0x488500
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x24]
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x488440
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x488430
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x38]
test ebx, ebx
jle 0x4887b6
mov ecx, dword [esp + 0x3c]
lea eax, [edi + edi*2]
mov edx, dword [esp + 0x98]
shl eax, 2
mov dword [esp + 0x44], eax
mov dword [esp + 0x18], ecx
or al, 0xff
mov dword [esp + 0x1c], eax
test edx, edx
je 0x4886ee
setns al
lea eax, [eax*2 - 1]
mov dword [esp + 0x1c], eax
test edi, edi
jle 0x48879b
cmp byte [esp + 0x94], 0
mov esi, ecx
mov ebx, dword [esp + 0x1c]
je 0x488748
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x40]
nop
mov al, byte [esi + 8]
test al, al
jne 0x48871b
mov dword [esi], edi
jmp 0x48871d
mov bl, al
mov ecx, dword [esi]
cmp ecx, edi
movsx eax, bl
cmovg ecx, edi
imul eax, ecx
push edi
neg eax
push eax
mov dword [esi], eax
call fcn.00488000
mov byte [ebp], al
add esp, 8
add esi, 0xc
inc ebp
sub dword [esp + 0x14], 1
jne 0x488710
jmp 0x488784
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x40]
mov al, byte [esi + 8]
test al, al
jne 0x48875b
mov dword [esi], edi
jmp 0x48875d
mov bl, al
mov ecx, dword [esi]
cmp ecx, edi
movsx eax, bl
cmovg ecx, edi
imul eax, ecx
push edi
push eax
mov dword [esi], eax
call fcn.00488000
mov byte [ebp], al
add esp, 8
add esi, 0xc
inc ebp
sub dword [esp + 0x14], 1
jne 0x488750
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
add ecx, dword [esp + 0x44]
add ebp, edi
sub ebx, 1
mov dword [esp + 0x38], ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ebx
jne 0x4886d6
mov eax, dword [esp + 0x24]
push dword [esp + 0x3c]
push eax
call fcn.00401938
mov ecx, dword [esp + 0x90]
add esp, 8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004018ca
add esp, 0x7c
ret
mov dword [esp + 0x10], 0x13
jmp 0x4887b6
mov dword [esp + 0x10], 6
xor eax, eax
jmp 0x4887ba