Function at 0x401dc5
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 0x402099
sub eax, 0xd
je 0x401fdc
sub eax, 5
je 0x401fc7
sub eax, 0xfc
je 0x401e22
sub eax, 0x26
je 0x401e18
dec eax
dec eax
jne 0x4020d7
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 [0x469728]
jmp 0x4020d9
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 [0x469728], 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.00433532
lea eax, [ebp - 0x168]
push 1
push eax
call fcn.00433b6e
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 0x469510
push eax
call fcn.0040114c
cmp dword [0x469510], 0
jne 0x401f47
lea eax, [ebp - 0x168]
push edi
push eax
call fcn.00433532
lea eax, [ebp - 0x168]
push 1
push eax
call fcn.00433b6e
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 0x469734
push str.Message
push str.Init
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x401f01
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 0x4020d7
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 0x401f5f
push eax
call edi
push 2
push ebx
call esi
test eax, eax
je 0x401f6b
push eax
call edi
push 3
push ebx
call esi
test eax, eax
je 0x401f77
push eax
call edi
mov edi, dword [0x46951c]
mov esi, dword [0x469518]
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 0x4020d7
cmp dword [0x469510], 0
je 0x4020d7
push 1
pop eax
jmp 0x4020d9
xor edi, edi
cmp dword [0x469510], edi
je 0x4020d7
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 [0x469514]
cmp eax, edi
je 0x40204e
mov esi, dword [sym.imp.GDI32.dll_UnrealizeObject]
push eax
call esi
push edi
mov edi, dword [sym.imp.GDI32.dll_SelectPalette]
push dword [0x469514]
push dword [ebp - 0x60]
call edi
push dword [ebp - 0x60]
mov ebx, dword [sym.imp.GDI32.dll_RealizePalette]
call ebx
push dword [0x469514]
call esi
push 0
push dword [0x469514]
push dword [ebp + 0x10]
call edi
push dword [ebp + 0x10]
call ebx
xor edi, edi
push dword [0x469510]
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push edi
push edi
push dword [ebp + 0x10]
push dword [0x46951c]
push dword [0x469518]
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 0x401fd4
mov eax, dword [0x469510]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
xor edi, edi
cmp eax, edi
je 0x4020b3
push eax
call esi
mov dword [0x469510], edi
mov eax, dword [0x469514]
cmp eax, edi
je 0x4020c5
push eax
call esi
mov dword [0x469514], edi
mov eax, dword [0x469728]
cmp eax, edi
je 0x4020d7
push eax
call esi
mov dword [0x469728], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10