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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword [0x1008c00c]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x10090d48]
mov dword [esp + 0x28], ecx
xor ecx, ecx
inc ecx
mov dword [esp + 0x54], esi
push edi
mov eax, dword [esi + 0x3e28]
mov edi, edx
mov dword [esp + 0x3c], edi
mov byte [eax + 0xa8], cl
mov eax, dword [esi + 0x3e28]
mov dword [esp + 0x14], eax
cmp byte [eax + 0xab], 0
je 0x10059823
xor al, al
jmp 0x1005a402
movss xmm2, dword [esi + 0x37d8]
addss xmm2, xmm2
addss xmm2, dword [esi + 0x3bb4]
movss dword [esp + 0x70], xmm2
call fcn.10010350
movaps xmm1, xmm0
movss dword [esp + 0x78], xmm1
test bl, 0x10
je 0x10059855
xorps xmm0, xmm0
jmp 0x10059861
movss xmm0, dword [esi + 0x37ec]
addss xmm0, xmm2
mov ecx, dword [esp + 0x2c]
subss xmm1, xmm0
xor edx, edx
movss dword [esp + 0x48], xmm0
movss dword [esp + 0x44], xmm1
call fcn.10004d13
and dword [esi + 0x4688], edx
mov dword [esp + 0x4c], eax
call fcn.10010545
mov ecx, dword [esp + 0x2c]
call fcn.1000dd0d
mov dword [esp + 0x74], ebx
test bl, 0x20
je 0x100598a9
and ebx, 0xff9fffff
or ebx, 0x100008
test bl, 8
jne 0x100598b7
mov edx, ebx
mov ecx, edi
call fcn.1005cff0
mov ecx, dword [esi + 0x5944]
mov edx, 0x700000
test edx, ebx
jne 0x100598cc
mov eax, ecx
and eax, edx
or ebx, eax
mov edx, 0x1800000
test edx, ebx
jne 0x100598db
mov eax, ecx
and eax, edx
or ebx, eax
mov edx, 0x6000000
test edx, ebx
jne 0x100598ea
mov eax, ecx
and eax, edx
or ebx, eax
mov edx, 0x18000000
test edx, ebx
jne 0x100598f9
mov eax, ecx
and eax, edx
or ebx, eax
movss xmm3, dword [edi]
and ecx, 0xe00fffff
movss xmm1, dword [edi + 4]
or ebx, ecx
movss xmm2, dword [edi + 8]
mov ecx, ebx
movss xmm0, dword [0x10088500]
xor edx, edx
shr ecx, 1
inc edx
mov eax, ebx
mov dword [esp + 0x18], ebx
shr eax, 0x13
not cl
and al, dl
movss dword [esp + 0xa0], xmm3
and cl, dl
mov dword [esp + 0x50], eax
movzx eax, cl
add eax, 3
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
movss dword [esp + 0xa4], xmm1
movss dword [esp + 0xa8], xmm2
movss dword [esp + 0x54], xmm0
test cl, cl
je 0x10059969
movss xmm0, dword [edi + 0xc]
mov eax, ebx
movss dword [esp + 0xac], xmm0
and eax, 0x10100000
mov edx, 0x8200000
mov dword [esp + 0x7c], eax
cmp eax, 0x10100000
jne 0x100599a9
lea eax, [esp + 0xa8]
movaps xmm0, xmm3
push eax
lea edx, [esp + 0xa8]
lea ecx, [esp + 0xa4]
call fcn.10003750
jmp 0x100599e7
mov eax, ebx
and eax, edx
cmp eax, edx
jne 0x10059a10
lea eax, [esp + 0xa8]
movaps xmm0, xmm3
push eax
lea edx, [esp + 0xa8]
lea ecx, [esp + 0xa4]
call fcn.100036b2
add esp, 4
lea eax, [esp + 0xa8]
push eax
mov eax, edx
mov edx, ecx
push eax
mov ecx, edi
call fcn.1005972c
pop ecx
movss xmm3, dword [esp + 0xa4]
movss xmm1, dword [esp + 0xa8]
movss xmm2, dword [esp + 0xac]
movss xmm0, dword [esp + 0xb0]
pop ecx
mov ecx, dword [esp + 0x30]
comiss xmm3, dword [0x10088424]
movss xmm5, dword [0x10088710]
movss xmm4, dword [0x100884b0]
jb 0x10059a2e
movaps xmm7, xmm4
jmp 0x10059a31
movaps xmm7, xmm5
comiss xmm1, dword [0x10088424]
movss xmm6, dword [0x10088694]
mulss xmm3, xmm6
addss xmm3, xmm7
cvttss2si eax, xmm3
mov dword [esp + 0xb0], eax
jb 0x10059a5a
movaps xmm3, xmm4
jmp 0x10059a5d
movaps xmm3, xmm5
comiss xmm2, dword [0x10088424]
mulss xmm1, xmm6
addss xmm1, xmm3
cvttss2si eax, xmm1
mov dword [esp + 0xb4], eax
jb 0x10059a7e
movaps xmm1, xmm4
jmp 0x10059a81
movaps xmm1, xmm5
comiss xmm0, dword [0x10088424]
mulss xmm2, xmm6
addss xmm2, xmm1
cvttss2si eax, xmm2
mov dword [esp + 0xb8], eax
jae 0x10059aa0
movaps xmm4, xmm5
mov edx, dword [esp + 0x14]
mulss xmm0, xmm6
addss xmm0, xmm4
cvttss2si eax, xmm0
mov dword [esp + 0xbc], eax
xor eax, eax
movss xmm2, dword [edx + 0xec]
movss xmm3, dword [edx + 0xf0]
mov byte [esp + 0xe], al
mov byte [esp + 0xf], al
movss dword [esp + 0x28], xmm2
movss dword [esp + 0x38], xmm3
cmp dword [esi + 0x382c], eax
jne 0x10059aed
movss xmm1, dword [esp + 0x48]
jmp 0x10059af0
xorps xmm1, xmm1
movaps xmm0, xmm2
addss xmm0, xmm1
movss dword [edx + 0xec], xmm0
test ebx, 0x300000
je 0x10059d50
test bl, 0x20
jne 0x10059d50
mov ecx, dword [esp + 0x34]
mov edx, str.M:0.000
movss xmm2, dword [esi + 0x37ec]
movss xmm1, dword [esp + 0x44]
movaps xmm0, xmm2
push ecx
lea eax, [ecx - 1]
mov dword [esp], 0xbf800000
movd xmm3, eax
cvtdq2ps xmm3, xmm3
push 0
push 0
mulss xmm0, xmm3
subss xmm1, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov ecx, str.M:000
divss xmm1, xmm0
cvttss2si eax, xmm1
movss xmm1, dword [0x10088500]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
maxss xmm1, xmm0
movss xmm0, dword [esp + 0x50]
addss xmm2, xmm1
movss dword [esp + 0x1c], xmm1
movss xmm1, dword [0x10088500]
mulss xmm2, xmm3
subss xmm0, xmm2
cvttss2si eax, xmm0
movd xmm0, eax
mov eax, ebx
cvtdq2ps xmm0, xmm0
and eax, 0x1000000
mov dword [esp + 0x74], eax
cmove edx, ecx
lea ecx, [esp + 0x8c]
maxss xmm1, xmm0
movss dword [esp + 0x70], xmm1
call fcn.10008639
movss xmm1, dword [esp + 0x1c]
add esp, 0xc
test ebx, 0x200000
movss xmm0, dword [eax]
push 0
pop edx
setne dl
xor eax, eax
inc edx
comiss xmm0, xmm1
cmovae edx, eax
xor ecx, ecx
mov dword [esp + 0x88], ecx
cmp dword [esp + 0x34], eax
jbe 0x10059f51
mov eax, ebx
mov edi, 0xff
and eax, 8
mov bl, cl
shl edx, 4
mov dword [esp + 0x6c], eax
mov dword [esp + 0x40], edx
test ecx, ecx
jle 0x10059c33
movss xmm1, dword [esi + 0x37ec]
xorps xmm0, xmm0
call fcn.1000ff81
movss xmm1, dword [esp + 0x10]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x40]
lea eax, [ecx + 1]
mov dword [esp + 0x5c], eax
cmp eax, dword [esp + 0x34]
jge 0x10059c45
movaps xmm0, xmm1
jmp 0x10059c4b
movss xmm0, dword [esp + 0x64]
mov eax, dword [0x10090d48]
or dword [eax + 0x4688], 1
cmp dword [esp + 0x68], 0
movss dword [eax + 0x468c], xmm0
je 0x10059cd0
cmp byte [esp + 0x50], 0
je 0x10059c72
xorps xmm0, xmm0
jmp 0x10059c7a
movss xmm0, dword [0x10088500]
movss xmm3, dword [0x10088450]
lea eax, [esp + 0x88]
and dword [esp + 0x8c], 0
push 0
push dword [edx + 0x10087efc]
movss dword [esp + 0x90], xmm0
push eax
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0xb0]
lea eax, [eax + ecx*4]
mov ecx, dword [ecx*4 + 0x10087f2c]
push eax
push 8
pop edx
call fcn.10052be3
or bl, al
add esp, 0x14
or byte [esp + 0xf], bl
jmp 0x10059d08
movss xmm2, dword [0x10088500]
mov eax, edi
push 0
push dword [edx + 0x10087ea4]
xor edx, edx
cmp byte [esp + 0x58], dl
cmovne eax, edx
push eax
push edx
lea edx, [esp + 0xc0]
lea edx, [edx + ecx*4]
mov ecx, dword [ecx*4 + 0x10087f2c]
call fcn.10053551
add esp, 0x10
or bl, al
cmp dword [esp + 0x6c], 0
jne 0x10059d19
mov ecx, str.context
call fcn.10011772
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x5c]
add edx, 4
movss xmm1, dword [esp + 0x10]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x40], edx
cmp ecx, dword [esp + 0x34]
jl 0x10059c0e
mov edi, dword [esp + 0x3c]
mov byte [esp + 0xe], bl
mov ebx, dword [esp + 0x18]
jmp 0x10059f51
mov eax, ebx
and eax, 0x400020
cmp eax, 0x400000
jne 0x10059f61
mov edx, 0xff
test cl, cl
je 0x10059def
mov eax, dword [esp + 0xbc]
cmp eax, edx
mov ecx, eax
cmovg ecx, edx
and dword [esp + 0x18], 0
test eax, eax
mov eax, dword [esp + 0xb8]
cmovs ecx, dword [esp + 0x18]
cmp eax, edx
push ecx
mov ecx, eax
cmovg ecx, edx
and dword [esp + 0x1c], 0
test eax, eax
mov eax, dword [esp + 0xb8]
cmovs ecx, dword [esp + 0x1c]
cmp eax, edx
push ecx
mov ecx, eax
cmovg ecx, edx
and dword [esp + 0x20], 0
test eax, eax
mov eax, dword [esp + 0xb8]
cmovs ecx, dword [esp + 0x20]
cmp eax, edx
push ecx
mov ecx, eax
cmovg ecx, edx
xor edx, edx
test eax, eax
lea eax, [esp + 0xcc]
cmovs ecx, edx
push ecx
push 0x10087c74
push 0x40
push eax
call fcn.10002ef1
add esp, 0x1c
jmp 0x10059e52
mov eax, dword [esp + 0xb8]
cmp eax, edx
mov ecx, eax
cmovg ecx, edx
and dword [esp + 0x18], 0
test eax, eax
mov eax, dword [esp + 0xb4]
cmovs ecx, dword [esp + 0x18]
cmp eax, edx
push ecx
mov ecx, eax
cmovg ecx, edx
and dword [esp + 0x1c], 0
test eax, eax
mov eax, dword [esp + 0xb4]
cmovs ecx, dword [esp + 0x1c]
cmp eax, edx
push ecx
mov ecx, eax
cmovg ecx, edx
xor edx, edx
test eax, eax
lea eax, [esp + 0xc8]
cmovs ecx, edx
push ecx
push 0x10087c88
push 0x40
push eax
call fcn.10002ef1
add esp, 0x18
mov eax, dword [0x10090d48]
xor edx, edx
movss xmm0, dword [esp + 0x44]
mov ecx, str.Text
and dword [esp + 0x18], 0
and dword [esp + 0x1c], 0
or dword [eax + 0x4688], 1
push 0
push 0
movss dword [eax + 0x468c], xmm0
lea eax, [esp + 0x20]
push 6
push eax
lea eax, [esp + 0xd0]
push 0x40
push eax
call fcn.1005682e
add esp, 0x18
test al, al
je 0x10059f42
xor eax, eax
inc eax
mov byte [esp + 0xe], al
lea eax, [esp + 0xc0]
mov cl, byte [eax]
cmp cl, 0x23
je 0x10059ec1
cmp cl, 0x20
je 0x10059ec1
cmp cl, 9
jne 0x10059ec4
inc eax
jmp 0x10059eb0
xor ecx, ecx
mov dword [esp + 0xbc], 0xff
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb0], ecx
cmp byte [esp + 0x30], cl
je 0x10059f1c
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0xbc]
push ecx
push str._02X_02X_02X_02X
push eax
call fcn.1000121f
add esp, 0x18
jmp 0x10059f42
lea ecx, [esp + 0xb8]
push ecx
lea ecx, [esp + 0xb8]
push ecx
lea ecx, [esp + 0xb8]
push ecx
push str._02X_02X_02X
push eax
call fcn.1000121f
add esp, 0x14
test bl, 8
jne 0x10059f51
mov ecx, str.context
call fcn.10011772
mov edx, dword [esp + 0x14]
movss xmm3, dword [esp + 0x38]
movss xmm2, dword [esp + 0x28]
and dword [esp + 0x10], 0
test bl, 0x10
jne 0x1005a12b
test bl, 0x20
jne 0x10059f8d
cmp dword [esi + 0x382c], 0
je 0x10059f8d
movss xmm0, dword [esi + 0x37ec]
addss xmm0, dword [esp + 0x44]
jmp 0x10059f90
xorps xmm0, xmm0
cmp byte [esp + 0x30], 0
addss xmm0, xmm2
movss dword [edx + 0xf0], xmm3
movss dword [edx + 0xec], xmm0
je 0x10059fb6
movss xmm0, dword [edi + 0xc]
movss dword [esp + 0x54], xmm0
movss xmm0, dword [edi]
lea eax, [esp + 0x18]
and dword [esp + 0x18], 0
lea edx, [esp + 0x90]
and dword [esp + 0x1c], 0
mov ecx, str.ColorButton
movss dword [esp + 0x90], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x94], xmm0
movss xmm0, dword [edi + 8]
movss dword [esp + 0x98], xmm0
movss xmm0, dword [esp + 0x54]
push eax
push ebx
movss dword [esp + 0xa4], xmm0
call fcn.1005c730
pop ecx
pop ecx
test al, al
je 0x1005a084
test bl, 4
jne 0x1005a084
lea edi, [esi + 0x5954]
mov ecx, str.picker
lea esi, [esp + 0x90]
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.100111dd
mov esi, dword [esp + 0x58]
lea eax, [esp + 0x18]
and dword [esp + 0x18], 0
lea ecx, [esp + 0x5c]
and dword [esp + 0x1c], 0
xor edx, edx
push eax
movss xmm0, dword [esi + 0x46a8]
addss xmm0, dword [0x10088424]
movss dword [esp + 0x60], xmm0
movss xmm0, dword [esi + 0x37e8]
addss xmm0, dword [esi + 0x46b4]
movss dword [esp + 0x64], xmm0
call fcn.1000da47
mov edi, dword [esp + 0x40]
pop ecx
test bl, 8
jne 0x1005a093
mov ecx, str.context
call fcn.10011772
xor edx, edx
mov ecx, str.picker
call fcn.10011607
test al, al
je 0x1005a12b
mov eax, dword [esi + 0x3e28]
xor ecx, ecx
inc ecx
cmp word [eax + 0xb2], cx
jne 0x1005a126
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
cmp eax, ecx
je 0x1005a0da
mov edx, ecx
mov ecx, eax
push 0
call fcn.1004dc8a
pop ecx
call fcn.10050fa6
mov eax, dword [0x10090d48]
xor ecx, ecx
movss xmm0, dword [esp + 0x70]
inc ecx
mulss xmm0, dword [0x10088600]
mov edx, edi
or dword [eax + 0x4688], ecx
mov ecx, 0x1007bf24
movss dword [eax + 0x468c], xmm0
lea eax, [esi + 0x5954]
push eax
mov eax, dword [esp + 0x78]
and eax, 0x1f890002
or eax, 0x740080
push eax
call fcn.1005a626
or byte [esp + 0x16], al
pop ecx
pop ecx
call fcn.10011726
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x2c], eax
je 0x1005a186
test bl, bl
js 0x1005a186
movss xmm1, dword [esi + 0x37ec]
xorps xmm0, xmm0
call fcn.1000ff81
test bl, 0x20
je 0x1005a156
movss xmm0, dword [esp + 0x48]
jmp 0x1005a164
movss xmm0, dword [esp + 0x78]
addss xmm0, dword [esi + 0x37ec]
addss xmm0, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x2c]
push 0
movss dword [eax + 0xec], xmm0
call fcn.1004dc8a
pop ecx
cmp byte [esp + 0xe], 0
je 0x1005a2e2
cmp dword [esp + 0x10], 0
jne 0x1005a2e2
cmp byte [esp + 0xf], 0
jne 0x1005a1bd
movups xmm0, xmmword [esp + 0xb0]
cvtdq2ps xmm0, xmm0
divps xmm0, xmmword [0x10088fb0]
movups xmmword [esp + 0xa0], xmm0
mov ecx, 0x8200000
mov eax, ebx
and eax, ecx
cmp eax, ecx
jne 0x1005a258
movss xmm0, dword [esp + 0xa0]
lea eax, [esp + 0xa8]
movss xmm1, dword [esp + 0xa4]
lea edx, [esp + 0xa4]
movss xmm2, dword [esp + 0xa8]
lea ecx, [esp + 0xa0]
push eax
movss dword [esi + 0x5948], xmm0
movss dword [esi + 0x594c], xmm1
call fcn.10003750
movss xmm5, dword [esp + 0xa4]
movss xmm6, dword [esp + 0xa8]
movss xmm7, dword [esp + 0xac]
and dword [esp + 0x28], 0
pop ecx
lea ecx, [esp + 0x18]
movss dword [esp + 0x18], xmm5
movss dword [esp + 0x1c], xmm6
movss dword [esp + 0x20], xmm7
call fcn.10003612
mov dword [esi + 0x5950], eax
jmp 0x1005a273
movss xmm7, dword [esp + 0xa8]
movss xmm6, dword [esp + 0xa4]
movss xmm5, dword [esp + 0xa0]
cmp dword [esp + 0x7c], 0x10100000
jne 0x1005a2bf
lea eax, [esp + 0xa8]
movaps xmm2, xmm7
push eax
lea edx, [esp + 0xa8]
movaps xmm1, xmm6
lea ecx, [esp + 0xa4]
movaps xmm0, xmm5
call fcn.100036b2
movss xmm7, dword [esp + 0xac]
add esp, 4
movss xmm6, dword [esp + 0xa4]
movss xmm5, dword [esp + 0xa0]
cmp byte [esp + 0x30], 0
movss dword [edi], xmm5
movss dword [edi + 4], xmm6
movss dword [edi + 8], xmm7
je 0x1005a2e2
movss xmm0, dword [esp + 0xac]
movss dword [edi + 0xc], xmm0
mov eax, dword [0x10090d48]
mov eax, dword [eax + 0x3e28]
dec dword [eax + 0xe0]
call fcn.1001065e
xor eax, eax
inc eax
test byte [esi + 0x46a4], al
je 0x1005a3b4
test ebx, 0x200
jne 0x1005a3b4
call fcn.100151cd
test al, al
je 0x1005a3b4
xor al, al
mov ecx, str._COL3F
mov byte [esp + 0xf], al
call fcn.10015269
test eax, eax
je 0x1005a348
mov esi, dword [eax]
xor ecx, ecx
inc ecx
mov byte [esp + 0xf], cl
mov byte [esp + 0xe], cl
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x58]
mov ecx, str._COL4F
call fcn.10015269
mov edi, dword [esp + 0x3c]
test eax, eax
je 0x1005a378
mov ecx, dword [esp + 0x34]
shl ecx, 2
push ecx
push dword [eax]
push edi
call sub.VCRUNTIME140.dll_memcpy
xor ecx, ecx
add esp, 0xc
inc ecx
mov al, cl
mov byte [esp + 0xe], cl
jmp 0x1005a37c
mov al, byte [esp + 0xf]
test al, al
je 0x1005a3a6
test ebx, 0x10000000
je 0x1005a3a6
movss xmm1, dword [edi + 4]
lea ebx, [edi + 8]
movss xmm2, dword [ebx]
lea edx, [edi + 4]
movss xmm0, dword [edi]
mov ecx, edi
push ebx
call fcn.100036b2
add esp, 4
mov eax, dword [0x10090d48]
mov byte [eax + 0x4932], 0
jmp 0x1005a3b9
mov eax, dword [0x10090d48]
mov edx, dword [esp + 0x10]
test edx, edx
je 0x1005a3d9
mov ecx, dword [esi + 0x3e74]
test ecx, ecx
je 0x1005a3d9
cmp dword [esi + 0x3e90], edx
jne 0x1005a3d9
mov dword [esi + 0x469c], ecx
mov cl, byte [esp + 0xe]
test cl, cl
je 0x1005a400
cmp dword [esi + 0x469c], 0
je 0x1005a400
xor edx, edx
inc edx
or dword [eax + 0x46a4], 4
mov byte [eax + 0x3e85], dl
mov byte [eax + 0x3e84], dl
mov al, cl
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1006dac1
mov esp, ebp
pop ebp
ret