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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xb4
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
mov dword [0x406050], 0x407263
mov dword [0x406054], 0x40726f
mov dword [0x406020], eax
mov dword [0x406064], 0
mov dword [0x406068], 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 [0x406058], eax
mov eax, dword [0x406050]
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 [0x406060], eax
mov eax, dword [0x406050]
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 ebx, dword [sym.imp.shell32.dll_ExtractIconA]
mov dword [0x40605c], eax
mov eax, dword [0x406054]
sub esp, 0x10
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [0x406020]
mov dword [esp], eax
call ebx
mov dword [0x406030], eax
mov eax, dword [0x406054]
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [0x406020]
mov dword [esp], eax
call ebx
mov dword [0x406034], eax
mov eax, dword [0x406054]
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [0x406020]
mov dword [esp], eax
call ebx
mov ebx, dword [0x406030]
mov dword [0x406038], eax
sub esp, 0xc
test ebx, ebx
je 0x405d30
mov ecx, dword [0x406034]
test ecx, ecx
je 0x405d60
mov edx, dword [0x406038]
test edx, edx
je 0x405d90
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405c88
lea ebx, [ebp - 0x70]
mov eax, dword [0x406050]
mov dword [esp + 0xc], ebx
lea edi, [ebp - 0x78]
mov dword [0x40602c], 0
mov dword [0x40603c], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x64
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 - 0x7c]
sub esp, 0x18
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x80]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x84]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x88]
mov dword [esp + 0x18], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str._d__d__d__d__d
mov dword [esp], ebx
call sym._sscanf
cmp eax, 5
je 0x405c40
mov dword [ebp - 0x84], 0x80000000
mov ecx, 0x80000000
mov esi, 0x80000000
mov edx, 0x80000000
mov dword [ebp - 0x88], 0x80000000
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x8c], 0x80000000
mov eax, dword [0x406020]
mov dword [esp + 0x10], ecx
mov ecx, dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], ecx
mov dword [esp + 0x14], esi
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 ecx
mov edx, dword [ebp - 0x78]
sub esp, 0x30
mov dword [0x406028], eax
mov dword [esp + 4], edx
mov edx, dword [sym.imp.user32.dll_ShowWindow]
mov dword [esp], eax
mov dword [ebp - 0x8c], edx
call edx
mov eax, dword [0x406028]
mov esi, dword [sym.imp.user32.dll_UpdateWindow]
sub esp, 8
mov dword [esp], eax
call esi
mov eax, dword [0x406020]
sub esp, 4
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadAcceleratorsW]
sub esp, 8
mov dword [0x406024], eax
call sym._STRING_LoadMenus
mov eax, dword [0x406028]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetClientRect]
mov eax, dword [0x406048]
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x74], 0x3030
sub esp, 8
mov dword [esp + 0x2c], edi
mov edi, dword [0x406020]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 0x28], edi
mov edi, dword [0x406028]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edi
mov edi, dword [ebp - 0x64]
mov dword [esp + 0x24], 0
sub edi, eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 0xc], 0x40000000
mov dword [esp + 0x1c], edi
mov edi, dword [ebp - 0x68]
sub edi, dword [ebp - 0x70]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.MDICLIENT
mov dword [esp], 0
call ecx
mov edx, dword [ebp - 0x8c]
sub esp, 0x30
mov dword [0x40602c], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call edx
mov eax, dword [0x40602c]
sub esp, 8
mov dword [esp], eax
call esi
sub esp, 4
call sym._MAIN_CreateGroups
call sym._MAIN_AutoStart
mov esi, dword [sym.imp.user32.dll_GetMessageW]
mov edi, dword [sym.imp.user32.dll_TranslateAcceleratorW]
jmp 0x405c06
mov eax, dword [0x406024]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [0x406028]
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
je 0x405c68
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call esi
sub esp, 0x10
test eax, eax
jne 0x405be8
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x80]
mov esi, dword [ebp - 0x84]
mov edx, dword [ebp - 0x7c]
sub eax, ecx
mov dword [ebp - 0x8c], eax
sub edx, esi
jmp 0x405a55
mov dword [esp], ebx
call dword [sym.imp.user32.dll_TranslateMessage]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.user32.dll_DispatchMessageW]
sub esp, 4
jmp 0x405c06
mov eax, dword [0x406020]
mov dword [ebp - 0x70], 3
lea ebx, [ebp - 0x70]
mov dword [ebp - 0x6c], sym._MAIN_MainWndProc_16
mov dword [ebp - 0x60], eax
mov eax, dword [0x406030]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x5c], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadCursorW]
sub esp, 8
mov dword [ebp - 0x58], eax
mov dword [esp], 5
call dword [sym.imp.gdi32.dll_GetStockObject]
mov dword [ebp - 0x50], 0
sub esp, 4
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], str.PMMain
mov dword [esp], ebx
call dword [sym.imp.user32.dll_RegisterClassW]
sub esp, 4
test ax, ax
je 0x405c2a
call sym._GROUP_RegisterGroupWinClass
test ax, ax
je 0x405c2a
call sym._PROGRAM_RegisterProgramWinClass
test ax, ax
jne 0x405996
jmp 0x405c2a
mov dword [esp + 4], 0x7f05
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadIconW]
mov ecx, dword [0x406034]
mov dword [0x406030], eax
sub esp, 8
test ecx, ecx
jne 0x40597a
lea esi, cs:[esi]
mov dword [esp + 4], 0x7f05
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadIconW]
mov edx, dword [0x406038]
mov dword [0x406034], eax
sub esp, 8
test edx, edx
jne 0x405988
lea esi, cs:[esi]
mov dword [esp + 4], 0x7f05
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadIconW]
mov dword [0x406038], eax
sub esp, 8
jmp 0x405988