Function at 0x404b80
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 [0x4080b0], 0x40726b
mov dword [0x4080b4], 0x407277
mov ebx, dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
mov dword [0x408080], eax
mov dword [0x4080c4], 0
mov dword [0x4080c8], 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 [0x4080b8], eax
mov eax, dword [0x4080b0]
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 [0x4080c0], eax
mov eax, dword [0x4080b0]
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
sub esp, 0x10
mov dword [0x4080bc], eax
mov dword [esp + 8], 0
mov eax, dword [0x4080b4]
mov dword [esp + 4], eax
mov eax, dword [0x408080]
mov dword [esp], eax
call sym._ExtractIconA_12
sub esp, 0xc
mov dword [0x408090], eax
mov dword [esp + 8], 0
mov eax, dword [0x4080b4]
mov dword [esp + 4], eax
mov eax, dword [0x408080]
mov dword [esp], eax
call sym._ExtractIconA_12
sub esp, 0xc
mov dword [0x408094], eax
mov dword [esp + 8], 0
mov eax, dword [0x4080b4]
mov dword [esp + 4], eax
mov eax, dword [0x408080]
mov dword [esp], eax
call sym._ExtractIconA_12
mov ecx, dword [0x408090]
mov dword [0x408098], eax
sub esp, 0xc
test ecx, ecx
je 0x405080
mov edx, dword [0x408094]
test edx, edx
je 0x4050b0
mov eax, dword [0x408098]
test eax, eax
je 0x4050e0
test esi, esi
je 0x404fe0
lea ebx, [ebp - 0x7c]
mov eax, dword [0x4080b0]
lea esi, [ebp - 0x84]
mov dword [0x40808c], 0
mov dword [0x40809c], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x64
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x407258
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 0x404f90
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 dword [esp + 0x2c], 0
mov eax, dword [0x408080]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov eax, dword [ebp - 0x9c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
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 [0x408088], eax
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._ShowWindow_8
mov eax, dword [0x408088]
sub esp, 8
mov dword [esp], eax
call sym._UpdateWindow_4
sub esp, 4
mov dword [esp + 4], 1
mov eax, dword [0x408080]
mov dword [esp], eax
call sym._LoadAcceleratorsW_8
sub esp, 8
mov dword [0x408084], eax
call dbg.STRING_LoadMenus
mov dword [esp + 4], ebx
mov eax, dword [0x408088]
mov dword [esp], eax
call sym._GetClientRect_8
mov eax, dword [0x4080a8]
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x80], 0x3030
sub esp, 8
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x84], eax
mov dword [esp + 0x2c], esi
mov eax, dword [0x408080]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
mov eax, dword [0x408088]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x70]
sub eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 0x14], ecx
sub eax, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], 0x40000000
mov dword [esp + 8], 0
mov dword [esp + 4], str.MDICLIENT
mov dword [esp], 0
call sym._CreateWindowExW_48
sub esp, 0x30
mov dword [0x40808c], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call sym._ShowWindow_8
mov eax, dword [0x40808c]
sub esp, 8
mov dword [esp], eax
call sym._UpdateWindow_4
sub esp, 4
call dbg.MAIN_CreateGroups
call dbg.MAIN_AutoStart
jmp 0x404f51
mov dword [esp + 8], ebx
mov eax, dword [0x408084]
mov dword [esp + 4], eax
mov eax, dword [0x408088]
mov dword [esp], eax
call sym._TranslateAcceleratorW_12
sub esp, 0xc
test eax, eax
je 0x404fc0
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 0x404f30
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 0x404dbd
mov dword [esp], ebx
call sym._TranslateMessage_4
sub esp, 4
mov dword [esp], ebx
call sym._DispatchMessageW_4
sub esp, 4
jmp 0x404f51
mov eax, dword [0x408080]
mov dword [ebp - 0x7c], 3
lea ebx, [ebp - 0x7c]
mov dword [ebp - 0x78], dbg.MAIN_MainWndProc
mov dword [ebp - 0x6c], eax
mov eax, dword [0x408090]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x68], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
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 [ebp - 0x58], str.PMMain
mov dword [esp], ebx
call sym._RegisterClassW_4
sub esp, 4
test ax, ax
je 0x404f78
call dbg.GROUP_RegisterGroupWinClass
test ax, ax
je 0x404f78
call dbg.PROGRAM_RegisterProgramWinClass
test ax, ax
jne 0x404cf2
jmp 0x404f78
mov dword [esp + 4], 0x7f05
mov dword [esp], 0
call sym._LoadIconW_8
mov edx, dword [0x408094]
mov dword [0x408090], eax
sub esp, 8
test edx, edx
jne 0x404cda
lea esi, [esi]
mov dword [esp + 4], 0x7f05
mov dword [esp], 0
call sym._LoadIconW_8
mov dword [0x408094], eax
mov eax, dword [0x408098]
sub esp, 8
test eax, eax
jne 0x404ce7
lea esi, [esi]
mov dword [esp + 4], 0x7f05
mov dword [esp], 0
call sym._LoadIconW_8
mov dword [0x408098], eax
sub esp, 8
jmp 0x404ce7