Function at 0x401c50
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43ab0e
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x44b7a0]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44b7a0]
xor eax, esp
push eax
lea eax, [esp + 0x47c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48c]
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
xor edi, edi
lea eax, [ebp + 0xc78]
push eax
mov ecx, ebp
mov dword [esp + 0x44], edi
mov dword [esp + 0x58], edi
call fcn.00412e68
lea esi, [ebp + 0x2078]
mov ecx, 0x441858
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401cf7
cmp dx, di
je 0x401cf3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401cf7
add eax, 4
add ecx, 4
cmp dx, di
jne 0x401cd1
xor eax, eax
jmp 0x401cfc
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x401d2f
lea eax, [ebp + 0x489c]
cmp eax, edi
jne 0x401d0e
xor eax, eax
jmp 0x401d11
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 0x4d0c]
push 1
push eax
push 0x30
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
lea ecx, [ebp + 0x4cec]
call fcn.00412e68
mov edx, dword [ebp + 0x4cd4]
cmp dword [edx + 0x404], edi
je 0x401d7a
lea eax, [ebp + 0x489c]
cmp eax, edi
jne 0x401d4b
xor eax, eax
jmp 0x401d4e
mov eax, dword [eax + 4]
push 1
push eax
mov eax, dword [ebp + 0x54e0]
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp + 0x1c78]
lea esi, [ebp + 0x54c0]
push ecx
mov ecx, esi
call fcn.00412e68
push 5
mov ecx, esi
jmp 0x401d81
push edi
lea ecx, [ebp + 0x54c0]
call fcn.00412f0a
push 0x400
lea edx, [esp + 0x78]
push edi
push edx
call fcn.00425cd0
add esp, 0xc
cmp dword [ebp + 0x4884], edi
jle 0x401e11
mov eax, dword [ebp + 0x4884]
mov ebx, dword [ebp + 0x3478]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401db5
lea edi, [esp + 0x74]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401dd0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x74]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401df3
mov ecx, dword [0x4414a0]
add ebx, 4
sub dword [esp + 0x18], 1
mov dword [edi], ecx
jne 0x401db1
lea eax, [ebp + 0x488c]
test eax, eax
je 0x401e1e
mov eax, dword [eax + 4]
mov edx, dword [ebp + 0x5cb4]
push 0
push eax
push 0x30
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x74]
push eax
lea ecx, [ebp + 0x5c94]
call fcn.00412e68
mov ecx, dword [ebp + 0x4ce8]
test ecx, ecx
je 0x401e67
cmp dword [ecx - 4], 0
lea eax, [ecx - 4]
je 0x401e5e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 3
call eax
jmp 0x401e67
push eax
call fcn.00407619
add esp, 4
mov esi, dword [ebp + 0x4888]
xor ecx, ecx
mov eax, esi
mov edx, 0x7d4
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00407624
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x484], 0
test eax, eax
je 0x401ec6
push fcn.00402d30
push fcn.00402b40
push esi
lea edi, [eax + 4]
push 0x7d4
push edi
mov dword [eax], esi
call fcn.00424b56
mov eax, edi
jmp 0x401ec8
xor eax, eax
mov dword [esp + 0x484], 0xffffffff
mov edx, dword [ebp + 0x5cb4]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x40]
push ecx
push edx
mov dword [ebp + 0x4ce8], eax
call esi
lea eax, [esp + 0x40]
push eax
mov ecx, ebp
call fcn.0041215c
mov edx, dword [ebp + 0x4d0c]
lea ecx, [esp + 0x54]
push ecx
push edx
call esi
lea eax, [esp + 0x54]
push eax
mov ecx, ebp
call fcn.0041215c
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x40]
sub ebx, eax
mov dword [esp + 0x3c], eax
mov eax, 0xcccccccd
mul ebx
mov edi, edx
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp + 0x4888]
mov eax, ecx
cdq
mov esi, 5
idiv esi
shr edi, 2
sub edi, 0x14
mov dword [esp + 0x18], ecx
mov esi, eax
add edx, 4
mov eax, 0x66666667
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, esi
mov esi, eax
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
xor edx, edx
div esi
sub eax, 0x14
cmp ecx, 5
mov dword [esp + 0x34], eax
jl 0x401f85
mov dword [esp + 0x18], 5
lea esi, [ebp + 0x78]
push esi
push 0xff
push 0x4414a4
push str.SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0xff
push str.ItemColorG
push str.SETTING
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0xff
push str.ItemColorB
push str.SETTING
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0xe6
push str.ItemMouseInColorR
push str.SETTING
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0xdc
push str.ItemMouseInColorG
push str.SETTING
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0x5a
push str.ItemMouseInColorB
push str.SETTING
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, eax
mov eax, 0xff
cmp dword [esp + 0x1c], eax
jle 0x40202e
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x30], eax
jle 0x402038
mov dword [esp + 0x30], eax
cmp dword [esp + 0x24], eax
jle 0x402042
mov dword [esp + 0x24], eax
cmp dword [esp + 0x2c], eax
jle 0x40204c
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x28], eax
jle 0x402056
mov dword [esp + 0x28], eax
cmp ecx, eax
jle 0x40205c
mov ecx, eax
cmp dword [ebp + 0x4888], 0
mov byte [esp + 0x17], 0
jle 0x40223f
mov edx, dword [esp + 0x18]
mov eax, ebx
lea esi, [edx + 1]
xor edx, edx
div esi
movzx edx, byte [esp + 0x30]
movzx ebx, cl
movzx ecx, byte [esp + 0x2c]
shl ebx, 8
shr edi, 1
mov dword [esp + 0x20], edi
mov dword [esp + 0x50], eax
movzx eax, byte [esp + 0x28]
or ebx, eax
movzx eax, byte [esp + 0x24]
shl eax, 8
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esp + 0x1c]
or eax, edx
shl eax, 8
or eax, ecx
mov dword [esp + 0x1c], eax
xor esi, esi
mov eax, 0x66666667
imul esi
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, ecx
imul edx, dword [esp + 0x34]
add edx, dword [esp + 0x38]
mov eax, esi
mov dword [esp + 0x64], edx
cdq
idiv dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
inc ecx
imul ecx, dword [esp + 0x34]
add ecx, dword [esp + 0x38]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x20]
inc edx
imul edx, dword [esp + 0x50]
mov edi, edx
sub edi, dword [esp + 0x20]
add ecx, edx
mov edx, dword [ebp + 0x4ce8]
add edi, eax
mov dword [esp + 0x68], edi
mov edi, esi
imul edi, edi, 0x7d4
add ecx, eax
mov dword [esp + 0x70], ecx
mov eax, dword [edi + edx]
mov eax, dword [eax + 0x13c]
lea ecx, [edi + edx]
lea edx, [esi + 0x7d1]
imul esi, esi, 0x804
push edx
push ebp
lea edx, [esp + 0x6c]
push edx
mov edx, dword [ebp + 0x4cd4]
add esi, dword [edx + 0x400]
push 0x50000100
push esi
call eax
mov eax, dword [ebp + 0x4ce8]
lea ecx, [ebp + 0x4894]
add eax, edi
test ecx, ecx
je 0x402167
mov ecx, dword [ecx + 4]
push 0
push ecx
mov ecx, dword [eax + 0x20]
push 0x30
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebp + 0x4ce8]
mov eax, dword [esi + edi + 0x130]
add esi, edi
mov dword [esi + 0x70], 1
test eax, eax
je 0x4021a4
mov ecx, dword [esi + 0x144]
test ecx, ecx
je 0x4021a4
mov ecx, dword [ecx + 4]
push ecx
push eax
call fcn.0041271d
lea ecx, [esi + 0x13c]
call fcn.004126e6
lea ecx, [esi + 0x12c]
call fcn.00412425
mov edx, dword [ebp + 0x4ce8]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
mov byte [edi + edx + 0x88], 4
mov eax, dword [ebp + 0x4ce8]
add eax, edi
mov ecx, 1
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov eax, dword [ebp + 0x4ce8]
add eax, edi
push ecx
mov dword [eax + 0x98], ebx
mov eax, dword [eax + 0x20]
push 0
push eax
call esi
mov eax, dword [ebp + 0x4ce8]
mov edx, dword [eax + edi + 0x20]
mov ecx, dword [esp + 0x1c]
add eax, edi
push 1
push 0
push edx
mov dword [eax + 0xa0], ecx
call esi
mov eax, dword [ebp + 0x4ce8]
mov dword [edi + eax + 0x8c], 0
mov al, byte [esp + 0x17]
inc al
movzx esi, al
cmp esi, dword [ebp + 0x4888]
mov byte [esp + 0x17], al
jl 0x4020bb
mov ecx, dword [esp + 0x47c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.0042461c
add esp, 0x474
ret 4