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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0xc]
lea ebx, [edi + 0xc]
mov ecx, ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
push dword [esi + 4]
push ebx
call fcn.1003a630
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
mov dword [ebx + 4], 0
call esi
or eax, 0xff000000
push 0x14
mov dword [edi + 0x90], eax
call esi
or eax, 0xff000000
mov dword [edi + 0x94], eax
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 0x18]
cmp ecx, edx
je 0x10038d47
mov eax, dword [edi + 0x108]
mov dword [ecx + 0x18], eax
add ecx, 0x78
cmp ecx, edx
jne 0x10038d34
mov ecx, dword [edi + 0x14]
lea eax, [ecx + 0xf00]
mov ecx, edi
push eax
call fcn.10039cf0
mov ebx, dword [edi + 0x18]
mov esi, dword [edi + 0x14]
cmp esi, ebx
je 0x10038d6f
nop
push esi
mov ecx, edi
call fcn.10039cf0
add esi, 0x78
cmp esi, ebx
jne 0x10038d60
mov esi, dword [edi + 0xc]
lea ebx, [edi + 0xc]
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x10038df5
nop dword [eax]
cmp dword [edi + 0x1a0], 0x10
lea edx, [esi + 0x10]
lea eax, [edi + 0x18c]
jb 0x10038d98
mov eax, dword [edi + 0x18c]
mov ecx, dword [edx + 0x20]
push eax
push edx
push dword [edi + 0x44]
push dword [edi + 0xd8]
push dword [ebp + 8]
call fcn.10037580
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x10038dd4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10038dd0
cmp esi, dword [eax + 8]
jne 0x10038dd0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10038dc0
mov esi, eax
jmp 0x10038dec
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x10038dec
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10038de0
cmp byte [esi + 0xd], 0
je 0x10038d80
lea ebx, [edi + 0xc]
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x20], ecx
cmp eax, ecx
je 0x10038ec7
mov edi, eax
lea ecx, [edi + 0x74]
mov dword [esp + 0x1c], ecx
cmp dword [edi], 0
jne 0x10038e1e
mov eax, dword [ebx]
mov eax, dword [eax]
mov esi, dword [eax + 0x30]
jmp 0x10038e49
push edi
lea eax, [esp + 0x38]
mov ecx, ebx
push eax
call fcn.1003af00
mov esi, dword [esp + 0x3c]
push edi
push esi
call fcn.1003afc0
test al, al
je 0x10038e43
cmp esi, dword [ebx]
je 0x10038e43
mov esi, dword [esi + 0x30]
jmp 0x10038e45
xor esi, esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x3c]
test edx, edx
je 0x10038e57
lock inc dword [edx + 4]
mov edx, dword [esi + 0x3c]
mov ebx, dword [ecx]
mov eax, dword [esi + 0x38]
mov dword [ecx - 4], eax
mov dword [ecx], edx
test ebx, ebx
je 0x10038e8a
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x10038e8a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x10038e86
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ecx, dword [esp + 0x1c]
movups xmm0, xmmword [esi]
mov ebx, dword [esp + 0x24]
add edi, 0x78
movups xmmword [ecx - 0x54], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ecx - 0x44], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [ecx - 0x34], xmm0
movq xmm0, qword [esi + 0x30]
movq qword [ecx - 0x24], xmm0
add ecx, 0x78
mov dword [esp + 0x1c], ecx
cmp edi, dword [esp + 0x20]
jne 0x10038e10
mov edi, dword [esp + 0x28]
mov esi, dword [edi + 0x38]
mov edx, dword [edi + 0x34]
cmp edx, esi
je 0x10038ef1
mov ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ecx + 8]
jne 0x10039141
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 0xc]
jne 0x10039141
add ecx, 0x28
cmp ecx, esi
jne 0x10038ed3
mov byte [edi + 0x40], 0
cmp edx, esi
je 0x10038f1a
nop dword [eax]
cmp dword [edx], 0x11
je 0x1003914a
cmp dword [edx + 8], 0x11
je 0x1003914a
add edx, 0x28
cmp edx, esi
jne 0x10038f00
xor al, al
movaps xmm3, xmmword [0x100bab00]
xor esi, esi
mov byte [edi + 0x41], al
movaps xmm0, xmm3
movups xmmword [edi + 0x50], xmm3
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x18]
movaps xmm2, xmm3
sub ecx, eax
mov dword [esp + 0x1c], eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10038fbd
xor ebx, ebx
cmp esi, 0x26
je 0x10038f91
mov eax, dword [edi + 0x15c]
cmp eax, 0x20
je 0x10038f69
cmp esi, eax
je 0x10038f91
mov ecx, dword [esp + 0x1c]
movsd xmm0, qword [ebx + ecx + 0x20]
comisd xmm0, xmmword [edi + 0x50]
jbe 0x10038f7f
movsd qword [edi + 0x50], xmm0
movsd xmm0, qword [ebx + ecx + 0x28]
comisd xmm0, xmmword [edi + 0x58]
jbe 0x10038f91
movsd qword [edi + 0x58], xmm0
mov ecx, dword [edi + 0x18]
mov eax, 0x88888889
sub ecx, dword [esp + 0x1c]
inc esi
imul ecx
add ebx, 0x78
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x10038f55
movsd xmm0, qword [edi + 0x50]
movsd xmm2, qword [edi + 0x58]
movd xmm1, dword [edi + 0x10c]
sub esp, 8
cvtdq2pd xmm1, xmm1
addsd xmm1, xmm0
movd xmm0, dword [edi + 0x110]
cvtdq2pd xmm0, xmm0
maxsd xmm1, xmm3
addsd xmm0, xmm2
movsd qword [edi + 0x50], xmm1
maxsd xmm0, qword [0x100ba910]
movsd qword [edi + 0x58], xmm0
addsd xmm0, xmm1
movsd qword [esp], xmm0
call fcn.10090466
mov esi, eax
add esp, 8
mov eax, 0x66666667
mov dword [edi + 0x48], esi
imul esi
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [edi + 0x4c], ecx
cmp ecx, 2
jge 0x10039031
mov dword [edi + 0x4c], 2
mov ecx, 2
cmp ecx, esi
jle 0x10039038
mov dword [edi + 0x4c], esi
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x14]
cmp edx, ecx
je 0x1003905f
mov eax, edx
cmp byte [eax + 0x69], 0
je 0x10039151
cmp byte [eax + 0x68], 0
je 0x10039151
add eax, 0x78
cmp eax, ecx
jne 0x10039044
mov byte [edi + 0x104], 0
cmp edx, ecx
je 0x10039081
mov eax, edx
nop dword [eax]
cmp dword [eax + 0x64], 0
jne 0x1003915d
add eax, 0x78
cmp eax, ecx
jne 0x10039070
xor al, al
mov byte [edi + 0x105], al
movsd xmm0, qword [edx + 0xf38]
mov eax, dword [edi + 0x84]
movsd qword [edi + 0x60], xmm0
movd xmm0, dword [ebp + 0xc]
movsd xmm1, qword [edx + 0xf48]
movsd qword [edi + 0x68], xmm1
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
movsd qword [edi + 0x70], xmm0
xorps xmm0, xmm0
movsd qword [edi + 0x88], xmm0
cmp eax, 0x20
jl 0x1003911c
mov byte [esp + 0x1c], al
sub esp, 8
mov eax, dword [ebp + 8]
mov esi, esp
mov byte [esp + 0x25], 0
mov ecx, dword [edx + 0x1150]
mov eax, dword [eax]
mov eax, dword [eax + 0x7c]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x24]
mov edx, eax
mov dword [esi], eax
lea ebx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x100390f6
sub edx, ebx
push ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 4], edx
call dword [esp + 0x34]
fstp qword [esp + 0x28]
movsd xmm0, qword [esp + 0x28]
movsd qword [edi + 0x88], xmm0
mov ecx, edi
call fcn.10038b90
cmp byte [edi + 0xd0], 0
je 0x10039164
mov eax, dword [edi + 0xcc]
mov dword [edi + 0xd4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov byte [edi + 0x40], 1
jmp 0x10038f00
mov al, 1
jmp 0x10038f1c
mov byte [edi + 0x104], 1
jmp 0x1003906a
mov al, 1
jmp 0x10039083
mov eax, dword [edi + 0xac]
mov dword [edi + 0xd4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8