Function at 0x4059d0
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 [0x407050], 0x408263
mov ebx, dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
mov dword [0x407054], 0x40826f
mov dword [0x407020], eax
mov dword [0x407064], 0
mov dword [0x407068], 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 [0x407058], eax
mov eax, dword [0x407050]
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 [0x407060], eax
mov eax, dword [0x407050]
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 [0x40705c], eax
mov eax, dword [0x407054]
sub esp, 0x10
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [0x407020]
mov dword [esp], eax
call ebx
mov dword [0x407030], eax
mov eax, dword [0x407054]
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [0x407020]
mov dword [esp], eax
call ebx
mov dword [0x407034], eax
mov eax, dword [0x407054]
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [0x407020]
mov dword [esp], eax
call ebx
mov ecx, dword [0x407030]
mov dword [0x407038], eax
sub esp, 0xc
test ecx, ecx
je 0x405ee8
mov edx, dword [0x407034]
test edx, edx
je 0x405f18
mov eax, dword [0x407038]
test eax, eax
je 0x405f48
test esi, esi
je 0x405e40
lea ebx, [ebp - 0x7c]
mov eax, dword [0x407050]
mov dword [esp + 0x10], 0x64
lea edi, [ebp - 0x84]
mov dword [0x40702c], 0
mov dword [0x40703c], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x408250
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], 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 0x405df8
mov dword [ebp - 0x90], 0x80000000
mov ecx, 0x80000000
mov esi, 0x80000000
mov edx, 0x80000000
mov dword [ebp - 0x94], 0x80000000
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x9c], 0x80000000
mov eax, dword [0x407020]
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 - 0x9c]
mov dword [ebp - 0xa0], 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 - 0x84]
sub esp, 0x30
mov dword [0x407028], eax
mov dword [esp + 4], edx
mov edx, dword [sym.imp.user32.dll_ShowWindow]
mov dword [esp], eax
mov dword [ebp - 0x9c], edx
call edx
mov eax, dword [0x407028]
mov esi, dword [sym.imp.user32.dll_UpdateWindow]
sub esp, 8
mov dword [esp], eax
call esi
mov eax, dword [0x407020]
sub esp, 4
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadAcceleratorsW]
sub esp, 8
mov dword [0x407024], eax
call sym._STRING_LoadMenus
mov eax, dword [0x407028]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetClientRect]
mov eax, dword [0x407048]
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x80], 0x3030
sub esp, 8
mov dword [esp + 0x2c], edi
mov edi, dword [0x407020]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x78]
mov dword [esp + 0x28], edi
mov edi, dword [0x407028]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edi
mov edi, dword [ebp - 0x70]
mov dword [esp + 0x24], 0
sub edi, eax
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0xc], 0x40000000
mov dword [esp + 0x1c], edi
mov edi, dword [ebp - 0x74]
sub edi, dword [ebp - 0x7c]
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 - 0x9c]
sub esp, 0x30
mov dword [0x40702c], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call edx
mov eax, dword [0x40702c]
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 0x405dbe
mov eax, dword [0x407024]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [0x407028]
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
je 0x405e20
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 0x405da0
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 esi, dword [ebp - 0x90]
mov edx, dword [ebp - 0x88]
sub eax, ecx
mov dword [ebp - 0x9c], eax
sub edx, esi
jmp 0x405c0a
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 0x405dbe
mov eax, dword [0x407020]
mov dword [ebp - 0x7c], 3
lea ebx, [ebp - 0x7c]
mov dword [ebp - 0x78], sym._MAIN_MainWndProc_16
mov dword [ebp - 0x6c], eax
mov eax, dword [0x407030]
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 dword [sym.imp.user32.dll_LoadCursorW]
sub esp, 8
mov dword [ebp - 0x64], eax
mov dword [esp], 5
call dword [sym.imp.gdi32.dll_GetStockObject]
mov dword [ebp - 0x5c], 0
sub esp, 4
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], str.PMMain
mov dword [esp], ebx
call dword [sym.imp.user32.dll_RegisterClassW]
sub esp, 4
test ax, ax
je 0x405de2
call sym._GROUP_RegisterGroupWinClass
test ax, ax
je 0x405de2
call sym._PROGRAM_RegisterProgramWinClass
test ax, ax
jne 0x405b3f
jmp 0x405de2
mov dword [esp + 4], 0x7f05
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadIconW]
mov edx, dword [0x407034]
mov dword [0x407030], eax
sub esp, 8
test edx, edx
jne 0x405b27
lea esi, [esi]
nop
mov dword [esp + 4], 0x7f05
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadIconW]
mov dword [0x407034], eax
mov eax, dword [0x407038]
sub esp, 8
test eax, eax
jne 0x405b34
lea esi, [esi]
mov dword [esp + 4], 0x7f05
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadIconW]
mov dword [0x407038], eax
sub esp, 8
jmp 0x405b34