Function at 0x404ba0
Capabilities:
Hide graphical window
Read .ini file

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xc8
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [0x4090b0], 0x407263
mov ebx, dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
mov dword [0x4090b4], 0x40726f
mov dword [0x409080], eax
mov dword [0x4090c4], 0
mov dword [0x4090c8], 0
mov dword [esp + 0xc], str.progman.ini
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoArrange
mov dword [esp], str.Settings
call ebx
mov dword [0x4090b8], eax
mov eax, dword [0x4090b0]
sub esp, 0x10
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.MinOnRun
mov dword [esp], str.Settings
call ebx
mov dword [0x4090c0], eax
mov eax, dword [0x4090b0]
sub esp, 0x10
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.SaveSettings
mov dword [esp], str.Settings
call ebx
mov dword [0x4090bc], eax
mov eax, dword [0x4090b4]
sub esp, 0x10
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [0x409080]
mov dword [esp], eax
call sym._ExtractIconA_12
mov dword [0x409090], eax
mov eax, dword [0x4090b4]
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [0x409080]
mov dword [esp], eax
call sym._ExtractIconA_12
mov dword [0x409094], eax
mov eax, dword [0x4090b4]
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [0x409080]
mov dword [esp], eax
call sym._ExtractIconA_12
mov ecx, dword [0x409090]
mov dword [0x409098], eax
sub esp, 0xc
test ecx, ecx
je 0x4050a0
mov edx, dword [0x409094]
test edx, edx
je 0x4050d0
mov eax, dword [0x409098]
test eax, eax
je 0x405100
test esi, esi
je 0x405000
lea ebx, [ebp - 0x7c]
mov eax, dword [0x4090b0]
mov dword [esp + 0x10], 0x64
lea esi, [ebp - 0x84]
mov dword [0x40908c], 0
mov dword [0x40909c], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x407250
mov dword [esp + 4], str.Window
mov dword [esp], str.Settings
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x88]
sub esp, 0x18
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x90]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x94]
mov dword [esp + 0x18], esi
mov dword [esp + 8], eax
mov dword [esp + 4], str._d__d__d__d__d
mov dword [esp], ebx
call dbg.sscanf
cmp eax, 5
je 0x404fb0
mov dword [ebp - 0x90], 0x80000000
mov ecx, 0x80000000
mov edi, 0x80000000
mov edx, 0x80000000
mov dword [ebp - 0x94], 0x80000000
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x9c], 0x80000000
mov eax, dword [0x409080]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x9c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], 0
mov dword [esp + 4], str.PMMain
mov dword [esp], 0
call sym._CreateWindowExW_48
mov edx, dword [ebp - 0x84]
sub esp, 0x30
mov dword [0x409088], eax
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._ShowWindow_8
mov eax, dword [0x409088]
sub esp, 8
mov dword [esp], eax
call sym._UpdateWindow_4
mov eax, dword [0x409080]
sub esp, 4
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._LoadAcceleratorsW_8
sub esp, 8
mov dword [0x409084], eax
call dbg.STRING_LoadMenus
mov eax, dword [0x409088]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._GetClientRect_8
mov eax, dword [0x4090a8]
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x80], 0x3030
sub esp, 8
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x84], eax
mov eax, dword [0x409080]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
mov eax, dword [0x409088]
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 0x24], 0
sub eax, ecx
mov dword [esp + 0xc], 0x40000000
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 8], 0
sub eax, edx
mov dword [esp + 4], str.MDICLIENT
mov dword [esp + 0x18], eax
mov dword [esp], 0
mov dword [esp + 0x2c], esi
call sym._CreateWindowExW_48
sub esp, 0x30
mov dword [0x40908c], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call sym._ShowWindow_8
mov eax, dword [0x40908c]
sub esp, 8
mov dword [esp], eax
call sym._UpdateWindow_4
sub esp, 4
call dbg.MAIN_CreateGroups
call dbg.MAIN_AutoStart
jmp 0x404f71
mov eax, dword [0x409084]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [0x409088]
mov dword [esp], eax
call sym._TranslateAcceleratorW_12
sub esp, 0xc
test eax, eax
je 0x404fe0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._GetMessageW_16
sub esp, 0x10
test eax, eax
jne 0x404f50
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov ecx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x90]
mov edx, dword [ebp - 0x88]
sub eax, ecx
mov dword [ebp - 0x9c], eax
sub edx, edi
jmp 0x404ddd
mov dword [esp], ebx
call sym._TranslateMessage_4
sub esp, 4
mov dword [esp], ebx
call sym._DispatchMessageW_4
sub esp, 4
jmp 0x404f71
mov eax, dword [0x409080]
mov dword [esp + 4], 0x7f00
lea ebx, [ebp - 0x7c]
mov dword [esp], 0
mov dword [ebp - 0x6c], eax
mov eax, dword [0x409090]
mov dword [ebp - 0x7c], 3
mov dword [ebp - 0x78], dbg.MAIN_MainWndProc
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x68], eax
call sym._LoadCursorW_8
sub esp, 8
mov dword [ebp - 0x64], eax
mov dword [esp], 5
call sym._GetStockObject_4
mov dword [ebp - 0x5c], 0
sub esp, 4
mov dword [ebp - 0x60], eax
mov dword [esp], ebx
mov dword [ebp - 0x58], str.PMMain
call sym._RegisterClassW_4
sub esp, 4
test ax, ax
je 0x404f98
call dbg.GROUP_RegisterGroupWinClass
test ax, ax
je 0x404f98
call dbg.PROGRAM_RegisterProgramWinClass
test ax, ax
jne 0x404d12
jmp 0x404f98
mov dword [esp + 4], 0x7f05
mov dword [esp], 0
call sym._LoadIconW_8
mov edx, dword [0x409094]
mov dword [0x409090], eax
sub esp, 8
test edx, edx
jne 0x404cfa
lea esi, [esi]
mov dword [esp + 4], 0x7f05
mov dword [esp], 0
call sym._LoadIconW_8
mov dword [0x409094], eax
mov eax, dword [0x409098]
sub esp, 8
test eax, eax
jne 0x404d07
lea esi, [esi]
mov dword [esp + 4], 0x7f05
mov dword [esp], 0
call sym._LoadIconW_8
mov dword [0x409098], eax
sub esp, 8
jmp 0x404d07