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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x1005e040]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x100d4a28]
push edi
mov edi, edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], edi
mov eax, dword [esi + 0x1a20]
mov dword [esp + 0x54], esi
mov byte [eax + 0x78], 1
mov eax, dword [esi + 0x1a20]
mov dword [esp + 0x44], eax
cmp byte [eax + 0x7b], 0
je 0x10035c40
xor al, al
jmp 0x1003675e
movss xmm0, dword [esi + 0x1548]
addss xmm0, xmm0
addss xmm0, dword [esi + 0x1938]
movss dword [esp + 0x68], xmm0
test bl, 0x10
je 0x10035c64
xorps xmm3, xmm3
jmp 0x10035c6f
movaps xmm3, xmm0
addss xmm3, dword [esi + 0x155c]
call fcn.1002c9e9
mov ecx, dword [esp + 0x2c]
subss xmm0, xmm3
xor edx, edx
movss dword [esp + 0x30], xmm0
call fcn.100270c4
mov dword [esp + 0x40], eax
call fcn.10038768
mov ecx, dword [esp + 0x2c]
call fcn.1002ea16
mov dword [esp + 0x6c], ebx
test bl, 0x20
je 0x10035cb0
and ebx, 0xff9fffff
or ebx, 0x100008
test bl, 8
jne 0x10035cbe
mov edx, ebx
mov ecx, edi
call fcn.100356e3
mov ecx, 0x700000
test ecx, ebx
jne 0x10035cd1
mov eax, dword [esi + 0x2c40]
and eax, ecx
or ebx, eax
mov ecx, 0x1800000
test ecx, ebx
jne 0x10035ce4
mov eax, dword [esi + 0x2c40]
and eax, ecx
or ebx, eax
mov ecx, 0x6000000
test ecx, ebx
jne 0x10035cf7
mov eax, dword [esi + 0x2c40]
and eax, ecx
or ebx, eax
mov eax, dword [esi + 0x2c40]
movss xmm0, dword [edi]
and eax, 0xf80fffff
or ebx, eax
movss dword [esp + 0xd0], xmm0
movss xmm0, dword [edi + 4]
mov ecx, ebx
shr ecx, 1
mov eax, ebx
shr eax, 0x13
not cl
and eax, 0xffffff01
movss dword [esp + 0xd4], xmm0
movss xmm0, dword [edi + 8]
and ecx, 0xffffff01
mov dword [esp + 0x4c], eax
movzx eax, cl
add eax, 3
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], eax
movss dword [esp + 0xd8], xmm0
test cl, cl
je 0x10035d6d
movss xmm0, dword [edi + 0xc]
movss dword [esp + 0xdc], xmm0
jmp 0x10035d78
mov dword [esp + 0xdc], 0x3f800000
test ebx, 0x200000
je 0x10035dbd
movss xmm2, dword [esp + 0xd8]
lea eax, [esp + 0xd8]
movss xmm1, dword [esp + 0xd4]
lea edx, [esp + 0xd4]
movss xmm0, dword [esp + 0xd0]
lea ecx, [esp + 0xd0]
push eax
call fcn.10021cc8
mov ecx, dword [esp + 0x3c]
add esp, 4
movss xmm0, dword [esp + 0xd0]
xorps xmm2, xmm2
comiss xmm0, xmm2
movss xmm3, dword [0x10059934]
movss xmm1, dword [0x10059780]
jb 0x10035de3
movaps xmm5, xmm1
jmp 0x10035de6
movaps xmm5, xmm3
movss xmm0, dword [esp + 0xd0]
movss xmm4, dword [0x100598c8]
mulss xmm0, xmm4
addss xmm0, xmm5
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0xd4]
comiss xmm0, xmm2
mov dword [esp + 0xe0], eax
jb 0x10035e1d
movaps xmm5, xmm1
jmp 0x10035e20
movaps xmm5, xmm3
movss xmm0, dword [esp + 0xd4]
mulss xmm0, xmm4
addss xmm0, xmm5
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0xd8]
comiss xmm0, xmm2
mov dword [esp + 0xe4], eax
jb 0x10035e4f
movaps xmm5, xmm1
jmp 0x10035e52
movaps xmm5, xmm3
movss xmm0, dword [esp + 0xd8]
mulss xmm0, xmm4
addss xmm0, xmm5
cvttss2si edx, xmm0
movss xmm0, dword [esp + 0xdc]
comiss xmm0, xmm2
mov dword [esp + 0xe8], edx
jae 0x10035e7f
movaps xmm1, xmm3
movss xmm0, dword [esp + 0xdc]
mulss xmm0, xmm4
mov byte [esp + 0x13], 0
mov byte [esp + 0x1b], 0
addss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [esp + 0xec], eax
test ebx, 0x300000
je 0x1003625f
test bl, 0x20
jne 0x1003625f
mov ecx, dword [esp + 0x24]
mov edx, str.M:0.000
movss xmm2, dword [esi + 0x155c]
movss xmm4, dword [esp + 0x30]
movaps xmm0, xmm2
movaps xmm1, xmm4
mov dword [esp + 0x58], 0x100594c0
lea eax, [ecx - 1]
mov dword [esp + 0x5c], 0x100594c4
movd xmm3, eax
cvtdq2ps xmm3, xmm3
push ecx
mov dword [esp], 0xbf800000
push 0
push 0
mov dword [esp + 0x6c], 0x100594c8
mulss xmm0, xmm3
mov dword [esp + 0x70], 0x100594cc
mov dword [esp + 0xbc], str.R:_3d
mov dword [esp + 0xc0], str.G:_3d
subss xmm1, xmm0
mov dword [esp + 0xc4], str.B:_3d
movd xmm0, ecx
mov ecx, str.M:000
cvtdq2ps xmm0, xmm0
mov dword [esp + 0xcc], str.H:_3d
mov dword [esp + 0xd0], str.S:_3d
mov dword [esp + 0xd4], str.V:_3d
mov dword [esp + 0x8c], str.R:_0.3f
mov dword [esp + 0x90], str.G:_0.3f
divss xmm1, xmm0
mov dword [esp + 0x94], str.B:_0.3f
mov dword [esp + 0x9c], str.H:_0.3f
mov dword [esp + 0xa0], str.S:_0.3f
mov dword [esp + 0xa4], str.V:_0.3f
cvttss2si eax, xmm1
movss xmm1, dword [0x100597ac]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
maxss xmm1, xmm0
addss xmm2, xmm1
movss dword [esp + 0x20], xmm1
movss xmm1, dword [0x100597ac]
mulss xmm2, xmm3
subss xmm4, xmm2
cvttss2si eax, xmm4
movd xmm0, eax
mov eax, 0x100594d0
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov eax, str.A:_3d
mov dword [esp + 0xc8], eax
mov dword [esp + 0xd8], eax
mov eax, str._0.3f
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov eax, str.A:_0.3f
mov dword [esp + 0x98], eax
mov dword [esp + 0xa8], eax
maxss xmm1, xmm0
mov eax, ebx
and eax, 0x1000000
mov dword [esp + 0x40], eax
cmove edx, ecx
lea ecx, [esp + 0x28]
movss dword [esp + 0x3c], xmm1
call fcn.10027b28
movss xmm1, dword [esp + 0x20]
add esp, 0xc
test ebx, 0x200000
movss xmm0, dword [eax]
push 0
pop eax
setne al
inc eax
xor ecx, ecx
comiss xmm0, xmm1
movaps xmm0, xmm1
cmovae eax, ecx
mov dword [esp + 0x14], eax
call fcn.1002c8b0
xor ecx, ecx
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x24], ecx
jbe 0x1003618d
mov edx, dword [esp + 0x14]
shl edx, 4
cmp dword [esp + 0x34], ecx
je 0x1003619f
and dword [esp + 0x48], ecx
mov eax, ebx
and eax, 8
mov bl, cl
mov dword [esp + 0x34], eax
lea eax, [esp + 0x70]
mov edi, dword [esp + 0x34]
add eax, edx
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x100360ef
movss xmm1, dword [esi + 0x155c]
xorps xmm0, xmm0
call fcn.10038a30
mov ecx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x24]
jne 0x1003610b
movss xmm0, dword [esp + 0x30]
call fcn.1002c8b0
mov ecx, dword [esp + 0x28]
cmp byte [esp + 0x4c], 0
mov eax, dword [esp + 0x14]
je 0x1003611b
xorps xmm0, xmm0
jmp 0x10036123
movss xmm0, dword [0x100597ac]
movss xmm3, dword [0x1005972c]
push ecx
mov dword [esp], 0x3f800000
push dword [eax]
lea eax, [esp + 0x3c]
movss dword [esp + 0x3c], xmm0
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0xe0]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + ecx*4 + 0x68]
push eax
push 4
pop edx
call fcn.1002fcab
add esp, 0x14
or bl, al
test edi, edi
jne 0x1003616a
call fcn.1002866a
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x14], 4
mov dword [esp + 0x28], ecx
cmp ecx, dword [esp + 0x24]
jl 0x100360d7
mov edi, dword [esp + 0x3c]
mov byte [esp + 0x13], bl
mov ebx, dword [esp + 0x50]
mov al, byte [esp + 0x13]
mov byte [esp + 0x1b], al
call fcn.1002c9a3
jmp 0x10036436
xor eax, eax
xor edi, edi
cmp byte [esp + 0x4c], al
mov ecx, 0xff
mov dword [esp + 0x14], eax
cmovne ecx, edi
mov dword [esp + 0x1c], ecx
mov ecx, ebx
mov edi, dword [esp + 0x1c]
and ecx, 8
mov dword [esp + 0x48], ecx
mov bl, al
lea ecx, [esp + 0xa0]
add ecx, edx
mov dword [esp + 0x28], ecx
test eax, eax
jle 0x100361eb
movss xmm1, dword [esi + 0x155c]
xorps xmm0, xmm0
call fcn.10038a30
mov eax, dword [esp + 0x14]
lea ecx, [eax + 1]
mov dword [esp + 0x1c], ecx
cmp ecx, dword [esp + 0x24]
jne 0x10036207
movss xmm0, dword [esp + 0x30]
call fcn.1002c8b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0xe0]
movss xmm2, dword [0x100597ac]
lea edx, [edx + eax*4]
push dword [ecx]
push edi
push ecx
mov ecx, dword [esp + eax*4 + 0x64]
call fcn.100300c6
add esp, 0xc
or bl, al
cmp dword [esp + 0x48], 0
jne 0x1003623b
call fcn.1002866a
mov eax, dword [esp + 0x1c]
add dword [esp + 0x28], 4
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x24]
jl 0x100361d3
mov edi, dword [esp + 0x3c]
mov byte [esp + 0x13], bl
mov ebx, dword [esp + 0x50]
jmp 0x10036195
test ebx, 0x400000
je 0x1003643b
test bl, 0x20
jne 0x1003643b
test cl, cl
mov ecx, 0xff
je 0x100362f8
cmp dword [esp + 0xec], ecx
cmovg eax, ecx
and dword [esp + 0x1c], 0
cmp dword [esp + 0xec], 0
cmovl eax, dword [esp + 0x1c]
cmp edx, ecx
push eax
mov eax, edx
cmovg eax, ecx
and dword [esp + 0x20], 0
test edx, edx
mov edx, dword [esp + 0xe8]
cmovs eax, dword [esp + 0x20]
cmp edx, ecx
push eax
mov eax, edx
cmovg eax, ecx
and dword [esp + 0x24], 0
test edx, edx
mov edx, dword [esp + 0xe8]
cmovs eax, dword [esp + 0x24]
cmp edx, ecx
push eax
mov eax, edx
cmovg eax, ecx
xor ecx, ecx
test edx, edx
cmovs eax, ecx
push eax
push 0x1005954c
lea eax, [esp + 0x104]
push 0x40
push eax
call fcn.10021624
add esp, 0x1c
jmp 0x10036354
cmp edx, ecx
mov eax, edx
cmovg eax, ecx
and dword [esp + 0x1c], 0
test edx, edx
mov edx, dword [esp + 0xe4]
cmovs eax, dword [esp + 0x1c]
cmp edx, ecx
push eax
mov eax, edx
cmovg eax, ecx
and dword [esp + 0x20], 0
test edx, edx
mov edx, dword [esp + 0xe4]
cmovs eax, dword [esp + 0x20]
cmp edx, ecx
push eax
mov eax, edx
cmovg eax, ecx
xor ecx, ecx
test edx, edx
cmovs eax, ecx
push eax
push 0x10059560
lea eax, [esp + 0x100]
push 0x40
push eax
call fcn.10021624
add esp, 0x18
movss xmm0, dword [esp + 0x30]
call fcn.1002c8b0
and dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
and dword [esp + 0x20], 0
lea edx, [esp + 0xf0]
push 0
push 0
push 6
push eax
push 0x40
mov ecx, str.Text
call fcn.10031fdd
add esp, 0x14
test al, al
je 0x1003642c
mov byte [esp + 0x13], 1
lea eax, [esp + 0xf0]
mov cl, byte [eax]
cmp cl, 0x23
je 0x100363af
cmp cl, 0x20
je 0x100363af
cmp cl, 9
jne 0x100363b2
inc eax
jmp 0x1003639e
xor ecx, ecx
mov dword [esp + 0xec], ecx
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe0], ecx
cmp byte [esp + 0x38], cl
je 0x10036406
lea ecx, [esp + 0xec]
push ecx
lea ecx, [esp + 0xec]
push ecx
lea ecx, [esp + 0xec]
push ecx
lea ecx, [esp + 0xec]
push ecx
push str._02X_02X_02X_02X
push eax
call fcn.100203ce
add esp, 0x18
jmp 0x1003642c
lea ecx, [esp + 0xe8]
push ecx
lea ecx, [esp + 0xe8]
push ecx
lea ecx, [esp + 0xe8]
push ecx
push str._02X_02X_02X
push eax
call fcn.100203ce
add esp, 0x14
test bl, 8
jne 0x10036436
call fcn.1002866a
call fcn.1002c9a3
xor eax, eax
mov dword [esp + 0x14], eax
test bl, 0x10
jne 0x100365bf
test bl, 0x20
jne 0x1003645f
movss xmm1, dword [esi + 0x155c]
xorps xmm0, xmm0
call fcn.10038a30
cmp byte [esp + 0x38], 0
je 0x1003646d
movss xmm1, dword [edi + 0xc]
jmp 0x10036475
movss xmm1, dword [0x100597ac]
movss xmm0, dword [edi]
lea edx, [esp + 0x58]
and dword [esp + 0x20], 0
mov ecx, str.ColorButton
push dword [esp + 0x20]
and dword [esp + 0x20], 0
push dword [esp + 0x20]
movss dword [esp + 0x60], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [edi + 8]
push ebx
movss dword [esp + 0x6c], xmm0
movss dword [esp + 0x70], xmm1
call fcn.1003520e
add esp, 0xc
test al, al
je 0x1003653e
test bl, 4
jne 0x1003653e
lea edi, [esi + 0x2c44]
mov ecx, 0x100595ac
lea esi, [esp + 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.100282d6
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x3c]
movss xmm1, dword [eax + 0x10c]
movss xmm0, dword [esi + 0x1558]
addss xmm0, dword [eax + 0x118]
mov eax, dword [0x100d4a28]
subss xmm1, dword [0x100597ac]
movss dword [eax + 0x1ad0], xmm0
xorps xmm0, xmm0
movss dword [eax + 0x1ad4], xmm0
movss dword [eax + 0x1acc], xmm1
movss dword [eax + 0x1ad8], xmm0
mov dword [eax + 0x1ab0], 1
test bl, 8
jne 0x10036548
call fcn.1002866a
mov ecx, 0x100595ac
call fcn.1002849e
test al, al
je 0x100365bf
mov eax, dword [esi + 0x1a20]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
cmp eax, ecx
je 0x1003657a
mov edx, ecx
mov ecx, eax
call fcn.1002d5af
call fcn.10038495
movss xmm0, dword [esp + 0x68]
mulss xmm0, dword [0x10059844]
call fcn.1002c8b0
lea eax, [esi + 0x2c44]
mov edx, edi
push eax
mov eax, dword [esp + 0x70]
mov ecx, str.picker
and eax, 0x7890002
or eax, 0x740080
push eax
call fcn.10036934
or byte [esp + 0x1b], al
pop ecx
pop ecx
call fcn.1002c9a3
call fcn.10028651
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x2c], eax
je 0x100365ea
test bl, bl
js 0x100365ea
movss xmm1, dword [esi + 0x155c]
xorps xmm0, xmm0
call fcn.10038a30
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
call fcn.1002d5af
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x1003669b
cmp byte [esp + 0x1b], 0
jne 0x10036617
movups xmm0, xmmword [esp + 0xe0]
cvtdq2ps xmm0, xmm0
divps xmm0, xmmword [0x10059f70]
movups xmmword [esp + 0xd0], xmm0
test ebx, 0x200000
je 0x10036656
movss xmm2, dword [esp + 0xd8]
lea eax, [esp + 0xd8]
movss xmm1, dword [esp + 0xd4]
lea edx, [esp + 0xd4]
movss xmm0, dword [esp + 0xd0]
lea ecx, [esp + 0xd0]
push eax
call fcn.10021d58
pop ecx
cmp byte [esp + 0x13], 0
je 0x1003669b
cmp byte [esp + 0x38], 0
movss xmm0, dword [esp + 0xd0]
movss dword [edi], xmm0
movss xmm0, dword [esp + 0xd4]
movss dword [edi + 4], xmm0
movss xmm0, dword [esp + 0xd8]
movss dword [edi + 8], xmm0
je 0x1003669b
movss xmm0, dword [esp + 0xdc]
movss dword [edi + 0xc], xmm0
mov eax, dword [0x100d4a28]
mov eax, dword [eax + 0x1a20]
dec dword [eax + 0x1c8]
call fcn.10038879
mov eax, dword [esp + 0x44]
test byte [eax + 0x108], 1
je 0x10036723
test ebx, 0x200
jne 0x10036723
call fcn.100392a8
test al, al
je 0x10036723
mov ecx, str._COL3F
call fcn.10039339
test eax, eax
je 0x100366ea
mov esi, dword [eax]
mov bl, 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
jmp 0x100366ee
mov bl, byte [esp + 0x13]
mov ecx, str._COL4F
call fcn.10039339
test eax, eax
je 0x10036714
mov ecx, dword [esp + 0x24]
shl ecx, 2
push ecx
push dword [eax]
push dword [esp + 0x44]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov bl, 1
mov ecx, dword [0x100d4a28]
mov byte [ecx + 0x1d01], 0
jmp 0x1003672d
mov ecx, dword [0x100d4a28]
mov bl, byte [esp + 0x13]
test esi, esi
je 0x10036751
mov eax, dword [esp + 0x54]
mov edx, dword [eax + 0x1a3c]
test edx, edx
je 0x10036751
cmp dword [eax + 0x1a5c], esi
jne 0x10036751
mov eax, dword [esp + 0x44]
mov dword [eax + 0x104], edx
test bl, bl
je 0x1003675c
mov byte [ecx + 0x1a4b], 1
mov al, bl
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004cf63
mov esp, ebp
pop ebp
ret