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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x52a2f8]
xor eax, esp
mov dword [esp + 0xd4], eax
cmp dword [0x52ab84], 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 0x433be3
push dword [edi + 0x64]
push 0
push dword [edi + 0xb0]
call fcn.004d8080
mov esi, dword [ebp + 0x18]
add esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 0x24], esi
cmp esi, 0x20
jb 0x4338d1
cmp esi, 0xd800
jb 0x4338e1
cmp esi, 0xf900
jb 0x4338eb
cmp esi, 0x10000
jae 0x4338f3
mov word [esp + 0xc], si
jmp 0x433996
cmp esi, 0x10000
jb 0x43391e
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 0x43399b
cmp esi, 0xef40
ja 0x433961
je 0x433952
mov eax, esi
sub eax, 0x1e
je 0x43394b
sub eax, 1
je 0x433944
sub eax, 0x60
jne case.default.0x433970
mov eax, 0x2014
jmp 0x433991
mov eax, 0x2665
jmp 0x433991
mov eax, 0x2661
jmp 0x433991
mov ecx, 2
mov dword [esp + 0xc], 0x20142014
jmp 0x43399b
lea eax, [esi - 0xef41]
cmp eax, 3
ja case.default.0x433970
jmp dword [eax*4 + 0x434240]
mov eax, 0x266a
jmp 0x433991
mov eax, 0xff5e
jmp 0x433991
mov eax, 0x2606
jmp 0x433991
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 [0x4f4094]
movzx eax, word [esp + 0xc]
lea ecx, [esp + 0x74]
push ecx
push eax
push eax
push dword [edi + 0xac]
call dword [0x4f4084]
cmp esi, 0x20
je 0x433bcd
cmp esi, 0x3000
je 0x433bcd
mov esi, dword [0x52ab80]
mov eax, dword [edi + 0x60]
mov edx, dword [edi + 0x24]
mov dword [esp + 0x14], 0
cmp esi, 1
jle 0x433b66
mov ecx, dword [0x52ab90]
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 0x433f89
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 0x433b38
nop
mov eax, esi
xor edx, edx
mov dword [esp + 0x10], eax
test ecx, ecx
jle 0x433ab5
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 0x433a80
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x34]
sub dword [esp + 0x28], 1
mov ecx, dword [0x52ab80]
mov dword [esp + 0x10], eax
jne 0x433a77
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x2c]
mov eax, dword [0x531ed0]
sub eax, 0
je 0x433afd
sub eax, 1
jne 0x433b1c
movd xmm0, edx
cvtdq2pd xmm0, xmm0
shr edx, 0x1f
addsd xmm0, qword [edx*8 + 0x519520]
mulsd xmm0, qword [0x518ef0]
divsd xmm0, xmm1
call fcn.004ed850
mulsd xmm0, qword [0x518fa8]
movsd xmm1, qword [esp + 0x48]
cvttsd2si eax, xmm0
jmp 0x433b0b
mov ecx, dword [0x52ab8c]
imul eax, edx, 0xff
shr eax, cl
mov edx, dword [esp + 0x18]
mov ecx, dword [0x52ab80]
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 0x433a60
mov edx, dword [esp + 8]
mov eax, dword [edi + 0x60]
mov ecx, dword [0x52ab90]
shl eax, cl
mov ecx, dword [0x52ab80]
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 0x433a46
jmp 0x433f83
mov esi, dword [esp + 0x20]
imul edx, eax
add edx, dword [edi + 0x20]
add edx, dword [edi + 0xb0]
cmp dword [edi + 0x48], 0
jle 0x433f83
mov eax, dword [edi + 0x44]
xor ecx, ecx
mov dword [esp + 8], eax
test eax, eax
jle 0x433ba2
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 0x433b90
mov dword [esp + 8], eax
mov ecx, dword [edi + 0x60]
cmp dword [esp + 8], ecx
jge 0x433bb1
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 0x433b83
jmp 0x433f83
mov eax, 0x20
mov dword [esp + 0x24], eax
push dword [edi + 0x54]
push 0
push dword [esp + 0x28]
call fcn.004d8080
add esp, 0xc
jmp 0x433f83
xor eax, eax
mov dword [esp + 0x80], 0x10000
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov eax, dword [0x52ab88]
mov dword [esp + 0x8c], 0x10000
sub eax, 0
je 0x433c2b
sub eax, 1
je 0x433c21
mov ecx, 6
mov eax, ecx
jmp 0x433c35
mov ecx, 5
lea eax, [ecx - 1]
jmp 0x433c35
mov ecx, 4
mov eax, 2
mov esi, dword [0x4f40d0]
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.004cd00b
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 [0x4f4080]
push dword [edi + 0x54]
push 0
push dword [esp + 0x28]
call fcn.004d8080
mov edx, dword [esp + 0x9c]
add esp, 0xc
mov ecx, dword [esp + 0x94]
cmp edx, 2
jge 0x433ce9
cmp ecx, 2
jl 0x433f60
test edx, edx
jle 0x433f60
test ecx, ecx
jle 0x433f60
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 0x433d49
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 0x433d51
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 0x433f60
nop word [eax + eax]
xor edx, edx
test ecx, ecx
jle 0x433f3e
cmp ecx, 0x10
jb 0x433ef9
cmp dword [0x52fd24], 2
jl 0x433ef9
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 0x433dd2
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x34], eax
jae 0x433efd
mov eax, ecx
and eax, 0x8000000f
jns 0x433de0
dec eax
or eax, 0xfffffff0
inc eax
movaps xmm1, xmmword [0x5192b0]
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 [0x519420]
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 [0x519420]
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 [0x519420]
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 [0x519420]
packuswb xmm0, xmm0
movd dword [edi - 4], xmm0
cmp edx, dword [esp + 0x48]
jl 0x433e10
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
jmp 0x433efd
mov eax, dword [esp + 0xc]
cmp edx, ecx
jge 0x433f3a
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 0x433f13
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 0x433d90
push dword [esp + 0x2c]
call fcn.004ccfc8
add esp, 4
lea eax, [esp + 0x74]
push eax
mov eax, dword [esp + 0x28]
push eax
push eax
push dword [edi + 0xac]
call dword [0x4f4084]
mov esi, dword [0x52ab80]
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 0x43413a
cmp eax, 0x3000
je 0x43413a
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 0x43411f
test edx, edx
jne 0x434010
mov eax, dword [esp + 0x20]
mov edx, dword [edi + 0x48]
add eax, ecx
xor ecx, ecx
test edx, edx
jle 0x433ff4
cmp byte [eax], 0
jne 0x4340ee
add eax, dword [edi + 0x50]
inc ecx
cmp ecx, edx
jl 0x433fe3
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 0x433fd0
test edx, edx
je 0x43411f
xor ecx, ecx
add eax, 0xffffffff
mov dword [esp + 0x10], ecx
mov dword [esp + 8], eax
js 0x434052
nop
test ecx, ecx
jne 0x434052
add eax, dword [esp + 0x20]
mov edx, dword [edi + 0x48]
test edx, edx
jle 0x434041
nop
cmp byte [eax], 0
jne 0x434106
add eax, dword [edi + 0x50]
inc ecx
cmp ecx, edx
jl 0x434030
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
sub eax, 1
mov dword [esp + 8], eax
jns 0x434020
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
cmp eax, 0x20
je 0x434183
cmp eax, 0x3000
je 0x434183
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm1, esi
cvtss2sd xmm0, xmm2
divsd xmm0, xmm1
movsd xmm1, qword [0x518e00]
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 [0x518e00]
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 [0x518e00]
call fcn.00401220
cvtsd2ss xmm0, xmm0
jmp 0x434198
mov eax, dword [esp + 0x1c]
mov edx, 1
mov ecx, dword [esp + 8]
mov dword [esp + 0x10], edx
mov dword [eax], ecx
jmp 0x433ffc
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 8]
mov dword [ecx + 8], eax
mov ecx, 1
mov dword [esp + 0x10], ecx
jmp 0x434049
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 0x434056
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 [0x518e00]
call fcn.00401220
mov ecx, dword [esp + 0x1c]
movss xmm2, dword [esp + 0x74]
cvttsd2si eax, xmm0
dec eax
mov dword [ecx + 8], eax
jmp 0x434056
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 [0x4f4090]
mov ecx, esi
call fcn.004a2ae0
test eax, eax
je 0x43421f
cmp esi, 0xff01
jb 0x4341ea
cmp esi, 0xff5f
jb 0x4341ff
mov edx, dword [esp + 0x58]
mov eax, dword [edi + 8]
mov ecx, dword [0x52ab90]
sar edx, cl
sar eax, 1
cmp eax, edx
jge 0x43421f
mov eax, dword [esp + 0x44]
mov dword [eax], 1
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.004ccfb7
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.004ccfb7
mov esp, ebp
pop ebp
ret 0x14