Function at 0x401f90
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x1b8
cmp eax, 0x110
push ebx
push ebp
push esi
push edi
ja 0x4022c1
je 0x4020fc
sub eax, 2
je 0x4020bd
sub eax, 0xd
je 0x401fe5
sub eax, 5
jne 0x4022cd
mov eax, dword [0x447520]
test eax, eax
je 0x4022cd
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1b8
ret 0x10
mov eax, dword [0x447520]
test eax, eax
je 0x4022cd
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 [0x447524]
test eax, eax
je 0x40205d
mov edi, dword [sym.imp.GDI32.dll_UnrealizeObject]
push eax
call edi
mov eax, dword [0x447524]
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 [0x447524]
push eax
call edi
mov ecx, dword [0x447524]
push 0
push ecx
push esi
call ebx
push esi
call ebp
mov edx, dword [0x447520]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x44752c]
mov ecx, dword [0x447528]
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]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1b8
ret 0x10
mov eax, dword [0x447520]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
xor edi, edi
cmp eax, edi
je 0x4020d7
push eax
call esi
mov dword [0x447520], edi
mov eax, dword [0x447524]
cmp eax, edi
je 0x4022cd
push eax
call esi
mov dword [0x447524], edi
pop edi
pop esi
pop ebp
xor eax, eax
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.0042c6a0
lea edx, [esp + 0x70]
push 1
push edx
call fcn.0042cef0
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 0x447520
push edx
call fcn.004011e0
mov eax, dword [0x447520]
test eax, eax
jne 0x402227
lea eax, [esp + 0x70]
push 0x105
push eax
call fcn.0042c6a0
lea ecx, [esp + 0x70]
push 1
push ecx
call fcn.0042cef0
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 0x446cb0
push str.Message
push str.Init
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4021c7
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]
pop edi
pop esi
pop ebp
xor eax, eax
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 0x40223f
push eax
call edi
push 2
push ebx
call esi
test eax, eax
je 0x40224b
push eax
call edi
push 3
push ebx
call esi
test eax, eax
je 0x402257
push eax
call edi
mov esi, dword [0x447528]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sub esi, edi
mov edi, dword [0x44752c]
sub edi, eax
sub esi, edx
mov edx, dword [esp + 0x1c]
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]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1b8
ret 0x10
sub eax, 0x136
je 0x4022f5
sub eax, 2
je 0x4022dc
pop edi
pop esi
pop ebp
xor eax, eax
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