Function at 0x401c33
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 0x401f07
sub eax, 0xd
je 0x401e4a
sub eax, 5
je 0x401e35
sub eax, 0xfc
je 0x401c90
sub eax, 0x26
je 0x401c86
dec eax
dec eax
jne 0x401f45
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 [0x4601e8]
jmp 0x401f47
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebx, dword [ebp + 8]
mov dword [0x4601e8], eax
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.0042ff8e
lea eax, [ebp - 0x168]
push 1
push eax
call fcn.004305c9
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 0x45ffd0
push eax
call fcn.0040114c
cmp dword [0x45ffd0], 0
jne 0x401db5
lea eax, [ebp - 0x168]
push edi
push eax
call fcn.0042ff8e
lea eax, [ebp - 0x168]
push 1
push eax
call fcn.004305c9
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 0x4601f4
push str.Message
push str.Init
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x401d6f
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 0x401f45
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 0x401dcd
push eax
call edi
push 2
push ebx
call esi
test eax, eax
je 0x401dd9
push eax
call edi
push 3
push ebx
call esi
test eax, eax
je 0x401de5
push eax
call edi
mov edi, dword [0x45ffdc]
mov esi, dword [0x45ffd8]
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 0x401f45
cmp dword [0x45ffd0], 0
je 0x401f45
push 1
pop eax
jmp 0x401f47
xor edi, edi
cmp dword [0x45ffd0], edi
je 0x401f45
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 [0x45ffd4]
cmp eax, edi
je 0x401ebc
mov esi, dword [sym.imp.GDI32.dll_UnrealizeObject]
push eax
call esi
push edi
mov edi, dword [sym.imp.GDI32.dll_SelectPalette]
push dword [0x45ffd4]
push dword [ebp - 0x60]
call edi
push dword [ebp - 0x60]
mov ebx, dword [sym.imp.GDI32.dll_RealizePalette]
call ebx
push dword [0x45ffd4]
call esi
push 0
push dword [0x45ffd4]
push dword [ebp + 0x10]
call edi
push dword [ebp + 0x10]
call ebx
xor edi, edi
push dword [0x45ffd0]
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push edi
push edi
push dword [ebp + 0x10]
push dword [0x45ffdc]
push dword [0x45ffd8]
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 0x401e42
mov eax, dword [0x45ffd0]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
xor edi, edi
cmp eax, edi
je 0x401f21
push eax
call esi
mov dword [0x45ffd0], edi
mov eax, dword [0x45ffd4]
cmp eax, edi
je 0x401f33
push eax
call esi
mov dword [0x45ffd4], edi
mov eax, dword [0x4601e8]
cmp eax, edi
je 0x401f45
push eax
call esi
mov dword [0x4601e8], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10