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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xcc
mov eax, dword [ebp + 8]
mov dword [0x40a0b0], 0x408263
mov dword [esp + 0xc], str.progman.ini
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoArrange
mov dword [esp], str.Settings
mov dword [0x40a0b4], 0x40826f
mov dword [0x40a080], eax
mov dword [0x40a0c4], 0
mov dword [0x40a0c8], 0
call sub.kernel32.dll_GetPrivateProfileIntA
mov dword [0x40a0b8], eax
mov eax, dword [0x40a0b0]
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 sub.kernel32.dll_GetPrivateProfileIntA
mov dword [0x40a0c0], eax
mov eax, dword [0x40a0b0]
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 sub.kernel32.dll_GetPrivateProfileIntA
mov dword [0x40a0bc], eax
mov eax, dword [0x40a0b4]
sub esp, 0x10
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [0x40a080]
mov dword [esp], eax
call sub.shell32.dll_ExtractIconA
mov dword [0x40a090], eax
mov eax, dword [0x40a0b4]
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [0x40a080]
mov dword [esp], eax
call sub.shell32.dll_ExtractIconA
mov dword [0x40a094], eax
mov eax, dword [0x40a0b4]
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [0x40a080]
mov dword [esp], eax
call sub.shell32.dll_ExtractIconA
mov ebx, dword [0x40a090]
mov dword [0x40a098], eax
sub esp, 0xc
test ebx, ebx
je 0x404dd0
mov ecx, dword [0x40a094]
test ecx, ecx
je 0x404e00
mov edx, dword [0x40a098]
test edx, edx
je 0x404e30
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x404d30
lea ebx, [ebp - 0x7c]
mov eax, dword [0x40a0b0]
mov dword [esp + 0x10], 0x64
lea esi, [ebp - 0x84]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0x408250
mov dword [esp + 4], str.Window
mov dword [esp], str.Settings
mov dword [0x40a08c], 0
mov dword [0x40a09c], 0
call sub.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 fcn.00403fd0
cmp eax, 5
je 0x404ce8
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 [0x40a080]
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 sub.user32.dll_CreateWindowExW
mov edx, dword [ebp - 0x84]
sub esp, 0x30
mov dword [0x40a088], eax
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x40a088]
sub esp, 8
mov dword [esp], eax
call sub.user32.dll_UpdateWindow
mov eax, dword [0x40a080]
sub esp, 4
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.user32.dll_LoadAcceleratorsW
sub esp, 8
mov dword [0x40a084], eax
call fcn.00405bd0
mov eax, dword [0x40a088]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.user32.dll_GetClientRect
mov eax, dword [0x40a0a8]
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 [0x40a080]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
mov eax, dword [0x40a088]
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 sub.user32.dll_CreateWindowExW
sub esp, 0x30
mov dword [0x40a08c], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x40a08c]
sub esp, 8
mov dword [esp], eax
call sub.user32.dll_UpdateWindow
sub esp, 4
call fcn.004047d0
call fcn.00404020
jmp 0x404cb1
mov eax, dword [0x40a084]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [0x40a088]
mov dword [esp], eax
call sub.user32.dll_TranslateAcceleratorW
sub esp, 0xc
test eax, eax
je 0x404d10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.user32.dll_GetMessageW
sub esp, 0x10
test eax, eax
jne 0x404c90
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
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 0x404b26
mov dword [esp], ebx
call sub.user32.dll_TranslateMessage
sub esp, 4
mov dword [esp], ebx
call sub.user32.dll_DispatchMessageW
sub esp, 4
jmp 0x404cb1
mov eax, dword [0x40a080]
mov dword [esp + 4], 0x7f00
lea ebx, [ebp - 0x7c]
mov dword [esp], 0
mov dword [ebp - 0x6c], eax
mov eax, dword [0x40a090]
mov dword [ebp - 0x7c], 3
mov dword [ebp - 0x78], 0x4041c0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x68], eax
call sub.user32.dll_LoadCursorW
sub esp, 8
mov dword [ebp - 0x64], eax
mov dword [esp], 5
call sub.gdi32.dll_GetStockObject
mov dword [ebp - 0x5c], 0
sub esp, 4
mov dword [ebp - 0x60], eax
mov dword [esp], ebx
mov dword [ebp - 0x58], str.PMMain
call sub.user32.dll_RegisterClassW
sub esp, 4
test ax, ax
je 0x404cd8
call fcn.00402270
test ax, ax
je 0x404cd8
call fcn.00404ef0
test ax, ax
jne 0x404a5c
jmp 0x404cd8
mov dword [esp + 4], 0x7f05
mov dword [esp], 0
call sub.user32.dll_LoadIconW
mov ecx, dword [0x40a094]
mov dword [0x40a090], eax
sub esp, 8
test ecx, ecx
jne 0x404a40
lea esi, [esi]
mov dword [esp + 4], 0x7f05
mov dword [esp], 0
call sub.user32.dll_LoadIconW
mov edx, dword [0x40a098]
mov dword [0x40a094], eax
sub esp, 8
test edx, edx
jne 0x404a4e
lea esi, [esi]
mov dword [esp + 4], 0x7f05
mov dword [esp], 0
call sub.user32.dll_LoadIconW
mov dword [0x40a098], eax
sub esp, 8
jmp 0x404a4e