Function at 0x4018a0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x1b8
cmp eax, 0xf
push ebx
push ebp
push esi
push edi
ja 0x4019d9
je 0x401901
sub eax, 2
jne 0x401bdf
mov eax, dword [0x445ca0]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
xor edi, edi
cmp eax, edi
je 0x4018dc
push eax
call esi
mov dword [0x445ca0], edi
mov eax, dword [0x445ca4]
cmp eax, edi
je 0x401bdf
push eax
call esi
mov dword [0x445ca4], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b8
ret 0x10
mov eax, dword [0x445ca0]
test eax, eax
je 0x401bdf
mov ecx, dword [esp + 0x1cc]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov eax, dword [0x445ca4]
test eax, eax
je 0x401979
mov edi, dword [sym.imp.GDI32.dll_UnrealizeObject]
push eax
call edi
mov eax, dword [0x445ca4]
mov ebx, dword [sym.imp.GDI32.dll_SelectPalette]
mov ecx, dword [esp + 0x30]
push 0
push eax
push ecx
call ebx
mov ebp, dword [sym.imp.GDI32.dll_RealizePalette]
mov edx, dword [esp + 0x30]
push edx
call ebp
mov eax, dword [0x445ca4]
push eax
call edi
mov ecx, dword [0x445ca4]
push 0
push ecx
push esi
call ebx
push esi
call ebp
mov edx, dword [0x445ca0]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x445cac]
mov ecx, dword [0x445ca8]
mov edx, dword [esp + 0x30]
push 0xcc0020
push 0
push 0
push esi
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x1cc]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b8
ret 0x10
cmp eax, 0x110
ja 0x401bd3
je 0x401a0e
cmp eax, 0x14
jne 0x401bdf
mov eax, dword [0x445ca0]
test eax, eax
je 0x401bdf
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b8
ret 0x10
mov ebx, dword [esp + 0x1cc]
lea edx, [esp + 0x20]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x70]
push 0x105
push ecx
call fcn.0042a9c0
lea edx, [esp + 0x70]
push 1
push edx
call fcn.0042a360
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x70]
mov eax, dword [esp + 0x1d8]
push eax
push ecx
call esi
lea edx, [esp + 0x70]
push 0x445ca0
push edx
call fcn.004026f0
mov eax, dword [0x445ca0]
test eax, eax
jne 0x401b39
lea eax, [esp + 0x70]
push 0x105
push eax
call fcn.0042a9c0
lea ecx, [esp + 0x70]
push 1
push ecx
call fcn.0042a360
lea edx, [esp + 0x70]
push str.demo.cbc
push edx
call esi
lea eax, [esp + 0x70]
lea ecx, [esp + 0x178]
push eax
push 0x50
push ecx
push 0x44550c
push str.Message
push str.Init
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x401ad9
lea edx, [esp + 0x178]
push edx
push 1
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, ecx
mov ecx, dword [esp + 0x18]
push 0
sub ecx, edi
push eax
push ecx
push 1
call esi
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
sub edx, ecx
add eax, edx
cdq
sub eax, edx
sar eax, 1
push eax
push 0
call esi
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
sub ecx, ebp
add eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b8
ret 0x10
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x401b51
push eax
call edi
push 2
push ebx
call esi
test eax, eax
je 0x401b5d
push eax
call edi
push 3
push ebx
call esi
test eax, eax
je 0x401b69
push eax
call edi
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [0x445ca8]
sub esi, edi
mov edi, dword [esp + 0x1c]
sub edi, eax
sub esi, edx
mov edx, dword [0x445cac]
sub edi, ebp
mov ebp, dword [sym.imp.USER32.dll_GetSystemMetrics]
add edi, edx
add esi, ecx
push 4
push edi
push esi
push 1
call ebp
sub eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
push 0
call ebp
sub eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b8
ret 0x10
sub eax, 0x136
je 0x401c07
sub eax, 2
je 0x401bee
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b8
ret 0x10
mov esi, dword [esp + 0x1d4]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
call dword [sym.imp.GDI32.dll_GetStockObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b8
ret 0x10