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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x52b2f8]
xor eax, esp
mov dword [esp + 0xd4], eax
cmp dword [0x52bb84], 0
xorps xmm0, xmm0
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
movss dword [esp + 0x40], xmm0
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
movd xmm0, dword [edi + 8]
mov eax, dword [ebp + 0xc]
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x74], 0
movss dword [esp + 0x78], xmm0
mov dword [esp + 0x7c], 0
je 0x433d83
push dword [edi + 0x64]
push 0
push dword [edi + 0xb0]
call fcn.004d8dc0
mov esi, dword [ebp + 0x18]
add esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 0x24], esi
cmp esi, 0x20
jb 0x433a71
cmp esi, 0xd800
jb 0x433a81
cmp esi, 0xf900
jb 0x433a8b
cmp esi, 0x10000
jae 0x433a93
mov word [esp + 0xc], si
jmp 0x433b36
cmp esi, 0x10000
jb 0x433abe
lea eax, [esi - 0x10000]
mov ecx, 2
shr eax, 0xa
sub eax, 0x2800
mov word [esp + 0xc], ax
mov eax, esi
and eax, 0x3ff
sub eax, 0x2400
mov word [esp + 0xe], ax
jmp 0x433b3b
cmp esi, 0xef40
ja 0x433b01
je 0x433af2
mov eax, esi
sub eax, 0x1e
je 0x433aeb
sub eax, 1
je 0x433ae4
sub eax, 0x60
jne case.default.0x433b10
mov eax, 0x2014
jmp 0x433b31
mov eax, 0x2665
jmp 0x433b31
mov eax, 0x2661
jmp 0x433b31
mov ecx, 2
mov dword [esp + 0xc], 0x20142014
jmp 0x433b3b
lea eax, [esi - 0xef41]
cmp eax, 3
ja case.default.0x433b10
jmp dword [eax*4 + 0x4343e0]
mov eax, 0x266a
jmp 0x433b31
mov eax, 0xff5e
jmp 0x433b31
mov eax, 0x2606
jmp 0x433b31
mov eax, 0x2015
mov word [esp + 0xc], ax
mov ecx, 1
push ecx
lea eax, [esp + 0x10]
push eax
push 0
push 0
push dword [edi + 0xac]
call dword [0x4f5098]
movzx eax, word [esp + 0xc]
lea ecx, [esp + 0x74]
push ecx
push eax
push eax
push dword [edi + 0xac]
call dword [0x4f5088]
cmp esi, 0x20
je 0x433d6d
cmp esi, 0x3000
je 0x433d6d
mov esi, dword [0x52bb80]
mov eax, dword [edi + 0x60]
mov edx, dword [edi + 0x24]
mov dword [esp + 0x14], 0
cmp esi, 1
jle 0x433d06
mov ecx, dword [0x52bb90]
shl eax, cl
imul eax, edx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x20]
mov edx, dword [esp + 8]
shl eax, cl
add edx, eax
mov eax, dword [esp + 0x20]
add edx, dword [edi + 0xb0]
cmp dword [edi + 0x48], 0
mov dword [esp + 8], edx
mov dword [esp + 0x18], eax
jle 0x434129
mov ecx, esi
mov eax, ecx
imul eax, ecx
movd xmm1, eax
cvtdq2pd xmm1, xmm1
movsd qword [esp + 0x48], xmm1
cmp dword [edi + 0x44], 0
mov esi, edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 0
jle 0x433cd8
nop
mov eax, esi
xor edx, edx
mov dword [esp + 0x10], eax
test ecx, ecx
jle 0x433c55
mov esi, dword [edi + 0x60]
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], ecx
mov esi, eax
mov edi, ecx
nop dword [eax + eax]
mov al, byte [esi]
lea ecx, [edx + 1]
test al, al
lea esi, [esi + 1]
cmove ecx, edx
mov edx, ecx
sub edi, 1
jne 0x433c20
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x34]
sub dword [esp + 0x28], 1
mov ecx, dword [0x52bb80]
mov dword [esp + 0x10], eax
jne 0x433c17
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x2c]
mov eax, dword [0x532f00]
sub eax, 0
je 0x433c9d
sub eax, 1
jne 0x433cbc
movd xmm0, edx
cvtdq2pd xmm0, xmm0
shr edx, 0x1f
addsd xmm0, qword [edx*8 + 0x51a980]
mulsd xmm0, qword [0x51a350]
divsd xmm0, xmm1
call fcn.004ee590
mulsd xmm0, qword [0x51a408]
movsd xmm1, qword [esp + 0x48]
cvttsd2si eax, xmm0
jmp 0x433cab
mov ecx, dword [0x52bb8c]
imul eax, edx, 0xff
shr eax, cl
mov edx, dword [esp + 0x18]
mov ecx, dword [0x52bb80]
mov byte [edx], al
inc edx
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x30]
add esi, ecx
inc eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
cmp eax, dword [edi + 0x44]
jl 0x433c00
mov edx, dword [esp + 8]
mov eax, dword [edi + 0x60]
mov ecx, dword [0x52bb90]
shl eax, cl
mov ecx, dword [0x52bb80]
add edx, eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 8], edx
mov dword [esp + 0x14], eax
cmp eax, dword [edi + 0x48]
jl 0x433be6
jmp 0x434123
mov esi, dword [esp + 0x20]
imul edx, eax
add edx, dword [edi + 0x20]
add edx, dword [edi + 0xb0]
cmp dword [edi + 0x48], 0
jle 0x434123
mov eax, dword [edi + 0x44]
xor ecx, ecx
mov dword [esp + 8], eax
test eax, eax
jle 0x433d42
nop dword [eax]
mov al, byte [edx]
inc ecx
mov byte [esi], al
inc edx
mov eax, dword [edi + 0x44]
inc esi
cmp ecx, eax
jl 0x433d30
mov dword [esp + 8], eax
mov ecx, dword [edi + 0x60]
cmp dword [esp + 8], ecx
jge 0x433d51
sub ecx, dword [esp + 8]
add edx, ecx
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [edi + 0x48]
jl 0x433d23
jmp 0x434123
mov eax, 0x20
mov dword [esp + 0x24], eax
push dword [edi + 0x54]
push 0
push dword [esp + 0x28]
call fcn.004d8dc0
add esp, 0xc
jmp 0x434123
xor eax, eax
mov dword [esp + 0x80], 0x10000
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov eax, dword [0x52bb88]
mov dword [esp + 0x8c], 0x10000
sub eax, 0
je 0x433dcb
sub eax, 1
je 0x433dc1
mov ecx, 6
mov eax, ecx
jmp 0x433dd5
mov ecx, 5
lea eax, [ecx - 1]
jmp 0x433dd5
mov ecx, 4
mov eax, 2
mov esi, dword [0x4f5090]
movd xmm0, eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x80]
push eax
push 0
push 0
lea eax, [esp + 0x9c]
mov dword [esp + 0x14], ecx
push eax
mov eax, dword [ebp + 0x18]
push ecx
push eax
push dword [edi + 0xac]
movaps xmmword [esp + 0x7c], xmm0
mov dword [esp + 0x40], eax
call esi
push eax
mov dword [esp + 0x18], eax
call fcn.004cdcab
add esp, 4
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x80]
push ecx
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x9c]
push eax
push dword [esp + 0x18]
mov eax, dword [esp + 0x38]
push eax
push dword [edi + 0xac]
call esi
lea eax, [esp + 0xa4]
push eax
push dword [edi + 0xac]
call dword [0x4f5084]
push dword [edi + 0x54]
push 0
push dword [esp + 0x28]
call fcn.004d8dc0
mov edx, dword [esp + 0x9c]
add esp, 0xc
mov ecx, dword [esp + 0x94]
cmp edx, 2
jge 0x433e89
cmp ecx, 2
jl 0x434100
test edx, edx
jle 0x434100
test ecx, ecx
jle 0x434100
mov eax, dword [esp + 0xa8]
mov esi, 0
sub eax, dword [edi + 0x24]
sub eax, dword [esp + 0x9c]
cmovns esi, eax
mov eax, dword [esp + 0x2c]
imul esi, dword [edi + 0x50]
mov dword [esp + 0xc], eax
add esi, dword [edi + 0x20]
add esi, dword [esp + 0x20]
mov dword [esp + 8], esi
test ecx, ecx
je 0x433ee9
mov eax, dword [esp + 0x14]
xor edx, edx
div ecx
mov edx, dword [esp + 0x90]
and eax, 0xfffffffc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
jmp 0x433ef1
mov dword [esp + 0x14], 0
mov ecx, dword [edi + 0x44]
cmp edx, ecx
mov esi, dword [edi + 0x48]
cmovl ecx, edx
mov dword [esp + 0x30], 0
cmp dword [esp + 0x94], esi
mov dword [esp + 0x10], ecx
cmovl esi, dword [esp + 0x94]
mov dword [esp + 0x18], esi
test esi, esi
mov esi, dword [esp + 8]
jle 0x434100
nop word [eax + eax]
xor edx, edx
test ecx, ecx
jle 0x4340de
cmp ecx, 0x10
jb 0x434099
cmp dword [0x530d54], 2
jl 0x434099
lea eax, [ecx - 1]
add eax, esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xc]
dec eax
add eax, ecx
cmp esi, eax
ja 0x433f72
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x34], eax
jae 0x43409d
mov eax, ecx
and eax, 0x8000000f
jns 0x433f80
dec eax
or eax, 0xfffffff0
inc eax
movaps xmm1, xmmword [0x51a710]
mov edi, ecx
movaps xmm2, xmmword [esp + 0x60]
sub edi, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x48], edi
mov edi, eax
sub edi, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x50], edi
mov edi, esi
mov ecx, dword [esp + 0x50]
nop word [eax + eax]
movd xmm0, dword [ecx + edi]
lea edi, [edi + 0x10]
pmovzxbd xmm0, xmm0
pmulld xmm0, xmm1
psrad xmm0, xmm2
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
pand xmm0, xmmword [0x51a880]
packuswb xmm0, xmm0
movd dword [edi - 0x10], xmm0
movd xmm0, dword [edx + eax + 4]
pmovzxbd xmm0, xmm0
pmulld xmm0, xmm1
psrad xmm0, xmm2
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
pand xmm0, xmmword [0x51a880]
packuswb xmm0, xmm0
movd dword [edi - 0xc], xmm0
movd xmm0, dword [edx + eax + 8]
pmovzxbd xmm0, xmm0
pmulld xmm0, xmm1
psrad xmm0, xmm2
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
pand xmm0, xmmword [0x51a880]
packuswb xmm0, xmm0
movd dword [edi - 8], xmm0
movd xmm0, dword [edx + eax + 0xc]
add edx, 0x10
pmovzxbd xmm0, xmm0
pmulld xmm0, xmm1
psrad xmm0, xmm2
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
pand xmm0, xmmword [0x51a880]
packuswb xmm0, xmm0
movd dword [edi - 4], xmm0
cmp edx, dword [esp + 0x48]
jl 0x433fb0
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
jmp 0x43409d
mov eax, dword [esp + 0xc]
cmp edx, ecx
jge 0x4340da
mov edi, dword [esp + 0x10]
add esi, edx
sub eax, dword [esp + 8]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x48], eax
movzx eax, byte [esi + eax]
lea esi, [esi + 1]
imul eax, eax, 0xff
inc edx
sar eax, cl
mov byte [esi - 1], al
mov eax, dword [esp + 0x48]
cmp edx, edi
jl 0x4340b3
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
add esi, dword [edi + 0x50]
inc edx
add eax, dword [esp + 0x14]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x30], edx
cmp edx, dword [esp + 0x18]
jl 0x433f30
push dword [esp + 0x2c]
call fcn.004cdc68
add esp, 4
lea eax, [esp + 0x74]
push eax
mov eax, dword [esp + 0x28]
push eax
push eax
push dword [edi + 0xac]
call dword [0x4f5088]
mov esi, dword [0x52bb80]
mov ecx, dword [esp + 0x1c]
movss xmm2, dword [esp + 0x74]
mov dword [ecx + 4], 0
mov eax, dword [edi + 0x48]
dec eax
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x24]
cmp eax, 0x20
je 0x4342da
cmp eax, 0x3000
je 0x4342da
mov eax, dword [edi + 0x44]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 8], ecx
test eax, eax
jle 0x4342bf
test edx, edx
jne 0x4341b0
mov eax, dword [esp + 0x20]
mov edx, dword [edi + 0x48]
add eax, ecx
xor ecx, ecx
test edx, edx
jle 0x434194
cmp byte [eax], 0
jne 0x43428e
add eax, dword [edi + 0x50]
inc ecx
cmp ecx, edx
jl 0x434183
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov eax, dword [edi + 0x44]
inc ecx
mov dword [esp + 8], ecx
cmp ecx, eax
jl 0x434170
test edx, edx
je 0x4342bf
xor ecx, ecx
add eax, 0xffffffff
mov dword [esp + 0x10], ecx
mov dword [esp + 8], eax
js 0x4341f2
nop
test ecx, ecx
jne 0x4341f2
add eax, dword [esp + 0x20]
mov edx, dword [edi + 0x48]
test edx, edx
jle 0x4341e1
nop
cmp byte [eax], 0
jne 0x4342a6
add eax, dword [edi + 0x50]
inc ecx
cmp ecx, edx
jl 0x4341d0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
sub eax, 1
mov dword [esp + 8], eax
jns 0x4341c0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
cmp eax, 0x20
je 0x434323
cmp eax, 0x3000
je 0x434323
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm1, esi
cvtss2sd xmm0, xmm2
divsd xmm0, xmm1
movsd xmm1, qword [0x51a260]
call fcn.00401220
mov eax, dword [esp + 0x3c]
xorps xmm1, xmm1
cvtsd2ss xmm0, xmm0
cvtsi2sd xmm1, esi
movss dword [eax], xmm0
movss xmm0, dword [esp + 0x7c]
cvtps2pd xmm0, xmm0
divsd xmm0, xmm1
movsd xmm1, qword [0x51a260]
call fcn.00401220
cvtsd2ss xmm0, xmm0
xorps xmm1, xmm1
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x78]
cvtsi2sd xmm1, esi
cvtps2pd xmm0, xmm0
divsd xmm0, xmm1
movsd xmm1, qword [0x51a260]
call fcn.00401220
cvtsd2ss xmm0, xmm0
jmp 0x434338
mov eax, dword [esp + 0x1c]
mov edx, 1
mov ecx, dword [esp + 8]
mov dword [esp + 0x10], edx
mov dword [eax], ecx
jmp 0x43419c
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 8]
mov dword [ecx + 8], eax
mov ecx, 1
mov dword [esp + 0x10], ecx
jmp 0x4341e9
mov ecx, dword [esp + 0x1c]
mov dword [ecx], 0
mov eax, dword [edi + 8]
cdq
sub eax, edx
sar eax, 1
dec eax
mov dword [ecx + 8], eax
jmp 0x4341f6
movss xmm0, dword [esp + 0x78]
addss xmm0, xmm2
movd xmm1, esi
cvtdq2pd xmm1, xmm1
mov dword [ecx], 0
addss xmm0, dword [esp + 0x7c]
cvtps2pd xmm0, xmm0
divsd xmm0, xmm1
movsd xmm1, qword [0x51a260]
call fcn.00401220
mov ecx, dword [esp + 0x1c]
movss xmm2, dword [esp + 0x74]
cvttsd2si eax, xmm0
dec eax
mov dword [ecx + 8], eax
jmp 0x4341f6
mov eax, dword [esp + 0x3c]
mov dword [eax], 0
mov eax, dword [ecx + 8]
inc eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x24]
movss dword [eax + 4], xmm0
movss xmm0, dword [esp + 0x40]
movss dword [eax + 8], xmm0
movzx eax, si
mov dword [esp + 0x54], eax
lea eax, [esp + 0x58]
push eax
push 1
lea eax, [esp + 0x5c]
push eax
push dword [edi + 0xac]
call dword [0x4f5094]
mov ecx, esi
call fcn.004a36c0
test eax, eax
je 0x4343bf
cmp esi, 0xff01
jb 0x43438a
cmp esi, 0xff5f
jb 0x43439f
mov edx, dword [esp + 0x58]
mov eax, dword [edi + 8]
mov ecx, dword [0x52bb90]
sar edx, cl
sar eax, 1
cmp eax, edx
jge 0x4343bf
mov eax, dword [esp + 0x44]
mov dword [eax], 1
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.004cdc57
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
xor ecx, esp
mov dword [eax], 0
call fcn.004cdc57
mov esp, ebp
pop ebp
ret 0x14