Function at 0x408290
Capabilities:
Print debug messages
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b196
mov eax, dword fs:[0]
push eax
sub esp, 0x9a4
mov eax, dword [0x466910]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, vtable.CFont.0
mov dword [ebp - 0x984], edi
mov dword [edi + 4], ebx
mov dword [edi], eax
mov dword [ebp - 4], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 8], eax
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x78], eax
or eax, 0xffffffff
mov dword [edi + 0x7c], ecx
mov dword [edi + 0x80], edx
mov dword [edi + 0x84], ebx
mov dword [edi + 0x88], ebx
mov dword [edi + 0x8c], ebx
mov dword [edi + 0x90], 0x3f3
mov dword [edi + 0x94], ebx
mov dword [edi + 0x98], ebx
mov dword [edi + 0x9c], 0x186a0
mov dword [edi + 0xa0], eax
mov dword [edi + 0xa4], eax
mov byte [ebp - 4], 3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.0041de72
mov edx, dword [eax + 0x20]
lea ecx, [edi + 0xa8]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea esi, [ebp - 0x520]
call fcn.0040ad70
mov eax, esi
push eax
mov byte [ebp - 4], 4
call fcn.0040b370
mov dword [0x467bb8], eax
mov ecx, 0x5c
lea eax, [ebp - 0x78]
lea ebx, [ebx]
cmp ecx, ebx
je 0x40838b
mov byte [eax], 0
inc eax
dec ecx
jmp 0x408380
push 0x4574d8
lea ecx, [ebp - 0x5c]
push 0x20
push ecx
mov dword [ebp - 0x74], 6
mov dword [ebp - 0x68], 0x2bc
mov dword [ebp - 0x78], 0xfffffff2
call fcn.0043349d
mov esi, dword [sym.imp.GDI32.dll_CreateFontIndirectW]
add esp, 0xc
lea edx, [ebp - 0x78]
push edx
call esi
push eax
mov ecx, edi
call fcn.0041b277
mov ecx, 0x5c
lea eax, [ebp - 0xd8]
cmp ecx, ebx
je 0x4083dd
mov byte [eax], 0
inc eax
dec ecx
jmp 0x4083d2
push 0x4574d8
lea eax, [ebp - 0x5c]
push 0x20
mov ebx, 0xe
push eax
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0xc8], 0x2bc
call fcn.0043349d
add esp, 0xc
lea ecx, [ebp - 0xd8]
push ecx
call esi
push eax
lea ecx, [edi + 8]
call fcn.0041b277
mov ecx, 0x5c
lea eax, [ebp - 0x78]
nop
test ecx, ecx
je 0x40842b
mov byte [eax], 0
inc eax
dec ecx
jmp 0x408420
push 0x4574d8
lea edx, [ebp - 0x5c]
push 0x20
push edx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x68], 0x190
call fcn.0043349d
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
call esi
push eax
lea ecx, [edi + 0x10]
call fcn.0041b277
lea ecx, [ebp - 0x9b0]
call fcn.0040c7a0
lea esi, [ebp - 0x9b0]
mov byte [ebp - 4], 5
call fcn.0040d080
push eax
lea ecx, [ebp - 0x980]
push ecx
mov edx, esi
push edx
call fcn.0040d870
push str.setting_
push eax
lea eax, [ebp - 0x978]
push eax
mov byte [ebp - 4], 6
call fcn.00404b30
add esp, 0xc
push str.CurrentSettings.ini
push eax
lea ecx, [ebp - 0x96c]
push ecx
mov byte [ebp - 4], 7
call fcn.00404b30
add esp, 0xc
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x978]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4084e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x980]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408506
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x96c]
push ecx
lea edx, [ebp - 0x988]
push str.GetProductAppFolderPath_Path:
push edx
call fcn.004066e0
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x988]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40854c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x96c]
push 0
push ecx
call fcn.00434217
add esp, 8
cmp eax, 0xffffffff
jne 0x40868a
lea esi, [ebp - 0x968]
call fcn.0040ad70
lea edx, [ebp - 0x974]
push edx
mov byte [ebp - 4], 0xb
call fcn.0040b700
push str.setting_
push eax
lea eax, [ebp - 0x97c]
push eax
mov byte [ebp - 4], 0xc
call fcn.00404b30
add esp, 0xc
push str.CurrentSettings.ini
push eax
lea ecx, [ebp - 0x990]
mov bl, 0xd
push ecx
mov byte [ebp - 4], bl
call fcn.00404b30
add esp, 0xc
push eax
lea ecx, [ebp - 0x96c]
mov byte [ebp - 4], 0xe
call fcn.00404340
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x990]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4085e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x97c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40860f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x974]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408635
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x96c]
push ecx
lea edx, [ebp - 0x98c]
push str.GetProdInstallPath_Path:
push edx
call fcn.004066e0
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x98c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40867b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x968]
mov byte [ebp - 4], 0xa
call fcn.0040ade0
mov ecx, dword [ebp - 0x96c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ecx
push 0
push str.PRODUCTNUM
push str.Settings
call ebx
cmp eax, 0x29
jne 0x4086c9
mov eax, 0xed7f55
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
jmp 0x408701
mov dword [edi + 0x38], 0xf1ab94
mov dword [edi + 0x3c], 0xe89f88
mov dword [edi + 0x40], 0xe39a82
mov dword [edi + 0x44], 0xde937b
mov dword [edi + 0x48], 0xda8e76
mov dword [edi + 0x4c], 0xd78a72
mov dword [edi + 0x50], 0xd4866e
mov dword [edi + 0x54], 0xd0826a
call fcn.004163a8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40871b
push 0x80004005
call fcn.004017a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x970], eax
mov byte [ebp - 4], 0xf
xor esi, esi
cmp esi, 8
jge 0x40876e
push esi
lea ecx, [ebp - 0x970]
push str.StripColor__d_
push ecx
call fcn.00404600
mov edx, dword [ebp - 0x96c]
mov eax, dword [edi + esi*4 + 0x38]
mov ecx, dword [ebp - 0x970]
add esp, 0xc
push edx
push eax
push ecx
push str.colorcode
call ebx
mov dword [edi + esi*4 + 0x18], eax
inc esi
jmp 0x408733
mov edx, dword [ebp - 0x96c]
push edx
push 0x89341a
push str.UI_BORDER
push str.colorcode
call ebx
mov dword [edi + 0x58], eax
mov eax, dword [ebp - 0x96c]
push eax
push 0xed7f55
push str.BLUEBACKGROUND
push str.colorcode
call ebx
mov ecx, dword [ebp - 0x96c]
push ecx
xor esi, esi
push esi
push str.INNER_UI_BORDER
push str.colorcode
mov dword [edi + 0x5c], eax
call ebx
mov edx, dword [ebp - 0x96c]
push edx
push 0xffffff
push str.UI_MIDDLE_BG
push str.colorcode
mov dword [edi + 0x60], eax
call ebx
mov dword [edi + 0x64], eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x970]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4087fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x96c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408824
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x998]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40884a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x99c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40886c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x9a8]
mov ebx, vtable.CRegistry.0
mov dword [ebp - 0x9b0], ebx
cmp eax, esi
je 0x40888a
push eax
call fcn.00415952
add esp, 4
mov dword [ebp - 0x9a8], esi
mov dword [ebp - 0x9a4], esi
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x4ec]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4088bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x4f0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4088e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x4fc]
mov dword [ebp - 0x504], ebx
cmp eax, esi
je 0x4088fb
push eax
call fcn.00415952
add esp, 4
lea ecx, [ebp - 0x518]
mov dword [ebp - 0x4fc], esi
mov dword [ebp - 0x4f8], esi
mov byte [ebp - 4], 3
call fcn.00422b38
jmp 0x408937
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004331c4
mov esp, ebp
pop ebp
ret 8