Function at 0x4019bd
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [ebp + 0xc]
push ebx
dec eax
push esi
dec eax
push edi
je 0x401c7d
sub eax, 0xd
je 0x401bc0
sub eax, 5
je 0x401bab
sub eax, 0xfc
je 0x401a1a
sub eax, 0x26
je 0x401a10
dec eax
dec eax
jne 0x401ca9
push 1
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [0x46f500]
jmp 0x401cab
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, 0x105
lea eax, [ebp - 0x168]
push edi
push eax
call fcn.0040a102
lea eax, [ebp - 0x168]
push 1
push eax
call fcn.00409392
push dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x168]
push eax
call esi
lea eax, [ebp - 0x168]
push 0x46f8b0
push eax
call fcn.0040999d
cmp dword [0x46f8b0], 0
jne 0x401b2b
lea eax, [ebp - 0x168]
push edi
push eax
call fcn.0040a102
lea eax, [ebp - 0x168]
push 1
push eax
call fcn.00409392
lea eax, [ebp - 0x168]
push str.demo.cbc
push eax
call esi
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x1b8]
push 0x50
push eax
push 0x46fb08
push str.Message
push str.Init
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x401ae5
lea eax, [ebp - 0x1b8]
push eax
push 1
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [ebp - 4]
push 0
sub eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
push 1
call esi
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 4]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push 0
call esi
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 8]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x401ca9
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 0x401b43
push eax
call edi
push 2
push ebx
call esi
test eax, eax
je 0x401b4f
push eax
call edi
push 3
push ebx
call esi
test eax, eax
je 0x401b5b
push eax
call edi
mov edi, dword [0x46f8bc]
mov esi, dword [0x46f8b8]
sub edi, dword [ebp - 0x14]
sub esi, dword [ebp - 0x18]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 4
sub edi, dword [ebp - 0xc]
sub esi, dword [ebp - 0x10]
add edi, dword [ebp - 4]
add esi, dword [ebp - 8]
push edi
push esi
push 1
call ebx
sub eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
push 0
call ebx
sub eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x401ca9
cmp dword [0x46f8b0], 0
je 0x401ca9
push 1
pop eax
jmp 0x401cab
xor edi, edi
cmp dword [0x46f8b0], edi
je 0x401ca9
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_BeginPaint]
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp + 0x10], eax
mov eax, dword [0x46f8b4]
cmp eax, edi
je 0x401c32
mov esi, dword [sym.imp.GDI32.dll_UnrealizeObject]
push eax
call esi
push edi
mov edi, dword [sym.imp.GDI32.dll_SelectPalette]
push dword [0x46f8b4]
push dword [ebp - 0x60]
call edi
push dword [ebp - 0x60]
mov ebx, dword [sym.imp.GDI32.dll_RealizePalette]
call ebx
push dword [0x46f8b4]
call esi
push 0
push dword [0x46f8b4]
push dword [ebp + 0x10]
call edi
push dword [ebp + 0x10]
call ebx
xor edi, edi
push dword [0x46f8b0]
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push edi
push edi
push dword [ebp + 0x10]
push dword [0x46f8bc]
push dword [0x46f8b8]
push edi
push edi
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EndPaint]
jmp 0x401bb8
mov eax, dword [0x46f8b0]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x401c96
push eax
call esi
and dword [0x46f8b0], 0
mov eax, dword [0x46f8b4]
test eax, eax
je 0x401ca9
push eax
call esi
and dword [0x46f8b4], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10