Function at 0x404960
Capabilities:
Check mutex on windows
Create directory
Delete file
Hide graphical window
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b8c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
mov eax, dword [0x447648]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str.GlobalMutex
push 1
push 0
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4049c2
push 0x40
push 0x43c670
push str.Application_already_running...
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4055f1
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
jge 0x4049e3
push str.Failed_to_initialize_OLE
push 1
call fcn.004021f0
add esp, 8
push 0
push str.neoncube
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call esi
cmp eax, 0xb7
je 0x404a12
push 0x40
push 0
push str.neoncube_directory_created__please_copy_files_inside_and_configure_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
jmp 0x4055f1
push 0x43c704
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.neoncube_neoncube.ini
call fcn.00401f50
dec eax
cmp eax, 3
ja case.default.0x404a31
jmp dword [eax*4 + 0x40560c]
push str.file_not_found__neoncube_neoncube.ini__n
call fcn.00401ec0
add esp, 4
push 0x10
push 0x43c758
push str.file_not_found__neoncube_neoncube.ini_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
jmp 0x4055f1
push str.invalid_path__neoncube_neoncube.ini__n
call fcn.00401ec0
add esp, 4
push 0x10
push 0x43c7b0
push str.path_not_found__neoncube_neoncube.ini_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
jmp 0x4055f1
push str.access_denied__neoncube_neoncube.ini__n
call fcn.00401ec0
add esp, 4
push 0x10
push 0x43c808
push str.access_denied__neoncube_neoncube.ini_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
jmp 0x4055f1
push str.unknown_error__neoncube_neoncube.ini__n
call fcn.00401ec0
add esp, 4
push 0x10
push 0x43c860
push str.unknown_error__neoncube_neoncube.ini_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
jmp 0x4055f1
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x43c658
push 0x64
push 0x4489f0
push 0
push str.server_name
push 0x43c89c
mov dword [ebp - 4], 0
call edi
test eax, eax
ja 0x404b22
push 0x4441bc
lea eax, [ebp - 0x110]
push eax
mov dword [ebp - 0x110], str.Invalid_key_in_NeonCube.ini:_server_name
call fcn.0042befe
push 0x43c658
push 0x400
push 0x448a54
push 0
push str.notice_url
push 0x43c8dc
call edi
test eax, eax
ja 0x404b5e
push 0x4441bc
lea ecx, [ebp - 0x130]
push ecx
mov dword [ebp - 0x130], str.Invalid_key_in_NeonCube.ini:_notice_url
call fcn.0042befe
push 0x43c658
push 0x400
push 0x448e54
push 0
push str.patch_site
push 0x43c918
call edi
test eax, eax
ja 0x404b9a
push 0x4441bc
lea edx, [ebp - 0x84]
push edx
mov dword [ebp - 0x84], str.Invalid_key_in_NeonCube.ini:_patch_site
call fcn.0042befe
push 0x43c658
push 0x400
push 0x449254
push 0
push str.patch_list
push 0x43c954
call edi
test eax, eax
ja 0x404bd6
push 0x4441bc
lea eax, [ebp - 0xd4]
push eax
mov dword [ebp - 0xd4], str.Invalid_key_in_NeonCube.ini:_patch_list
call fcn.0042befe
push 0x43c658
push 0x100
push 0x449654
push 0
push str.executable
push 0x43c990
call edi
test eax, eax
ja 0x404c12
push 0x4441bc
lea ecx, [ebp - 0x8c]
push ecx
mov dword [ebp - 0x8c], str.Invalid_key_in_NeonCube.ini:_executable
call fcn.0042befe
push 0x43c658
push 0x400
push 0x449754
push 0
push str.patch_folder
push 0x43c9d0
call edi
test eax, eax
ja 0x404c4e
push 0x4441bc
lea edx, [ebp - 0x12c]
push edx
mov dword [ebp - 0x12c], str.Invalid_key_in_NeonCube.ini:_patch_folder
call fcn.0042befe
push 0x43c658
push 0x400
push 0x449b54
push 0
push str.registration_link
push 0x43ca18
call edi
test eax, eax
ja 0x404c8a
push 0x4441bc
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], str.Invalid_key_in_NeonCube.ini:_registration_link
call fcn.0042befe
push 0x43c658
push 0x32
push 0x449f54
push 0
push str.grf_file
push 0x43ca5c
call edi
test eax, eax
ja 0x404cc3
push 0x4441bc
lea ecx, [ebp - 0xe8]
push ecx
mov dword [ebp - 0xe8], str.Invalid_key_in_NeonCube.ini:_grf_file
call fcn.0042befe
push 0x43c658
push 0x100
push 0x449f86
push 0
push str.skin
push 0x43ca94
call edi
test eax, eax
ja 0x404d2e
push 0x4441bc
lea edx, [ebp - 0x9c]
push edx
mov dword [ebp - 0x9c], str.Invalid_key_in_NeonCube.ini:_skin
call fcn.0042befe
mov esi, dword [ebp - 0xa8]
push 0x10
push 0x43cac0
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
push 0x43cac8
call fcn.00401ec0
add esp, 8
mov eax, 0x404ad4
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x43c658
push 0x50
push str.patch_port
push 0x43cad8
call esi
push 0x43c658
push 0
push str.debug_mode
push 0x43caec
mov dword [0x44a48c], eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x449f86
push 0x446050
mov dword [0x44a490], eax
call ebx
push str._neoncube.style
push 0x446050
call ebx
push 0x449f86
push str.neoncube_
call ebx
push 0x43c658
xor ebx, ebx
push ebx
push str.Backup_GRF
push 0x43cb10
call esi
push 0x43c658
push ebx
push str.startup_option
push 0x43cb28
mov word [0x44a086], ax
call esi
push 0x43c658
push 0x400
push 0x44a494
push 0x43cb2f
push str.archive_passphrase
push str.general
mov word [0x44a088], ax
call edi
push 0x449654
mov dword [ebp - 4], 2
call fcn.00401f50
dec eax
cmp eax, 3
ja case.default.0x404df7
jmp dword [eax*4 + 0x40561c]
push 0x4441bc
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], str.Invalid_entry_in_neoncube.ini:__executable___file_not_found_
call fcn.0042befe
push 0x4441bc
lea ecx, [ebp - 0xa4]
push ecx
mov dword [ebp - 0xa4], str.Invalid_entry_in_neoncube.ini:__executable___invalid_path_
call fcn.0042befe
push 0x4441bc
lea edx, [ebp - 0xfc]
push edx
mov dword [ebp - 0xfc], str.Invalid_entry_in_neoncube.ini__executable___access_denied_
call fcn.0042befe
push 0x4441bc
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0xac], str.Invalid_entry_in_neoncube.ini__executable___unknown_error_
call fcn.0042befe
push 0x449f54
call fcn.00401f50
dec eax
cmp eax, 3
ja case.default.0x404e7a
jmp dword [eax*4 + 0x40562c]
push 0x4441bc
lea ecx, [ebp - 0x128]
push ecx
mov dword [ebp - 0x128], str.Invalid_entry_in_neoncube.ini:__grf_file___file_not_found_
call fcn.0042befe
push 0x4441bc
lea edx, [ebp - 0xc0]
push edx
mov dword [ebp - 0xc0], str.Invalid_entry_in_neoncube.ini:__grf_file___invalid_path_
call fcn.0042befe
push 0x4441bc
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], str.Invalid_entry_in_neoncube.ini__grf_file___access_denied_
call fcn.0042befe
push 0x4441bc
lea ecx, [ebp - 0x80]
push ecx
mov dword [ebp - 0x80], str.Invalid_entry_in_neoncube.ini__grf_file___unknown_error_
call fcn.0042befe
push str.neoncube_
call fcn.00401f50
dec eax
cmp eax, 3
ja case.default.0x404ef5
jmp dword [eax*4 + 0x40563c]
push 0x4441bc
lea edx, [ebp - 0x88]
push edx
mov dword [ebp - 0x88], str.Invalid_entry_in_neoncube.ini:__skin___folder_not_found_
call fcn.0042befe
push 0x4441bc
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x90], str.Invalid_entry_in_neoncube.ini:__skin___invalid_path_
call fcn.0042befe
push 0x4441bc
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x98], str.Invalid_entry_in_neoncube.ini__skin___access_denied_
call fcn.0042befe
push 0x4441bc
lea edx, [ebp - 0xa0]
push edx
mov dword [ebp - 0xa0], str.Invalid_entry_in_neoncube.ini__skin___unknown_error_
call fcn.0042befe
mov esi, dword [ebp - 0xa8]
push 0x10
push 0x43ce14
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
push 0x43ce1c
call fcn.00401ec0
add esp, 8
mov eax, 0x404ad4
ret
push 0x446050
push ebx
push 0x43ce20
push 0x43ce28
mov dword [ebp - 4], 0xffffffff
call esi
push 0x446050
push ebx
push 0x43ce34
push 0x43ce3c
mov dword [ebp - 0xbc], eax
call esi
push 0x446050
push ebx
push 0x43ce48
push 0x43ce50
mov dword [ebp - 0xb8], eax
call esi
push 0x446050
push ebx
push 0x43ce5c
push str.minimize
mov dword [ebp - 0xb0], eax
call esi
push 0x446050
push ebx
push 0x43ce70
push 0x43ce78
mov dword [ebp - 0xb4], eax
call esi
push 0x446050
push ebx
push 0x43ce80
push 0x43ce88
mov dword [ebp - 0xd0], eax
call esi
push 0x446050
push ebx
push 0x43ce90
push 0x43ce98
mov dword [ebp - 0xcc], eax
call esi
push 0x446050
push ebx
push 0x43cea0
push str.close
mov dword [ebp - 0xc4], eax
call esi
push 0x446050
push ebx
push 0x43ceb0
push 0x43ceb8
mov dword [ebp - 0xc8], eax
call esi
push 0x446050
push ebx
push 0x43cec4
push 0x43cecc
mov dword [ebp - 0xe4], eax
call esi
push 0x446050
push ebx
push 0x43ced8
push 0x43cee0
mov dword [ebp - 0xe0], eax
call esi
push 0x446050
push ebx
push 0x43ceec
push str.startgame
mov dword [ebp - 0xd8], eax
call esi
push 0x446050
push ebx
push 0x43cf00
push 0x43cf08
mov dword [ebp - 0xdc], eax
call esi
push 0x446050
mov dword [ebp - 0xf8], eax
push ebx
push 0x43cf14
push 0x43cf1c
call esi
push 0x446050
push ebx
push 0x43cf28
push 0x43cf30
mov dword [ebp - 0xf4], eax
call esi
push 0x446050
push ebx
push 0x43cf3c
push str.register
mov dword [ebp - 0xec], eax
call esi
push 0x446050
push ebx
push 0x43cf50
push 0x43cf58
mov dword [ebp - 0xf0], eax
call esi
push 0x446050
push ebx
push 0x43cf60
push 0x43cf68
mov dword [ebp - 0x10c], eax
call esi
push 0x446050
push ebx
push 0x43cf70
push 0x43cf78
mov dword [ebp - 0x108], eax
call esi
push 0x446050
push ebx
push 0x43cf80
push str.cancel
mov dword [ebp - 0x100], eax
call esi
push 0x446050
push ebx
push 0x43cf90
push 0x43cf98
mov dword [ebp - 0x104], eax
call esi
push 0x446050
push ebx
push 0x43cfa4
push 0x43cfac
mov dword [ebp - 0x120], eax
call esi
push 0x446050
push ebx
push 0x43cfb8
push 0x43cfc0
mov dword [ebp - 0x11c], eax
call esi
push 0x446050
push ebx
push 0x43cfcc
push str.progressbar
mov dword [ebp - 0x114], eax
call esi
mov dword [ebp - 0x118], eax
call fcn.00401630
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
xor eax, eax
mov ecx, 0xc
lea edi, [ebp - 0x160]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], ebx
mov ebx, dword [ebp + 8]
push 0x6a
push eax
mov dword [ebp - 0x160], 0x30
mov dword [ebp - 0x15c], 0x20
mov dword [ebp - 0x158], 0x404400
mov dword [ebp - 0x14c], ebx
call esi
mov dword [ebp - 0x148], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push 5
mov dword [ebp - 0x144], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0x6a
push 0
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0x43cfe0
call esi
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x405298
push str.Failed_to_register_parent_window_class.
push 1
call fcn.004021f0
add esp, 8
push ebx
call fcn.00401cd0
test eax, eax
jne 0x4052b1
push str.Failed_to_register_notice_window_class.
push 1
call fcn.004021f0
add esp, 8
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
movzx eax, ax
add eax, 0xfffffe0c
cdq
sub eax, edx
mov esi, eax
push 1
sar esi, 1
call edi
movzx eax, ax
sub eax, 0x1f4
cdq
sub eax, edx
push str.neoncube_
lea ecx, [ebp - 0x78]
mov edi, eax
push ecx
sar edi, 1
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str._bg.bmp
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x10
push 0
push 0
push 0
lea eax, [ebp - 0x78]
push eax
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
test eax, eax
mov dword [0x44a8ac], eax
jne 0x40532b
lea ecx, [ebp - 0x78]
push ecx
push str.Failed_to_load__s_n.
push 1
call fcn.004021f0
add esp, 0xc
push str.___NeonCube
push 0x4489f0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push 0
push 0x1f4
push 0x1f4
push edi
push esi
push SysReAllocString
push 0x4489f0
push str.NeonCube
push 0
call ebx
mov edi, dword [ebp + 0x14]
mov esi, eax
push edi
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0xfffffffffffffffa
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edx, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xb8]
push eax
mov eax, dword [ebp - 0xb0]
push 0xfa1
push esi
push edx
mov edx, dword [ebp - 0xbc]
push eax
push ecx
push edx
push 0x4001000b
push 0x43d06d
push 0x43d070
push 0
call ebx
push edi
push eax
mov dword [0x4489d8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0xfffffffffffffffa
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 0xcc]
push eax
mov eax, dword [ebp - 0xc8]
push 0xfa2
push esi
push eax
mov eax, dword [ebp - 0xd0]
push ecx
push edx
push eax
push 0x4001000b
push 0x43d077
push 0x43d078
push 0
call ebx
push edi
push eax
mov dword [0x44a8a8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0xfffffffffffffffa
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ebp - 0xd8]
push eax
push 0xfa6
push esi
push ecx
push edx
mov eax, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xe4]
push eax
push ecx
push 0x4001000b
push 0x43d07f
push 0x43d080
push 0
call ebx
push edi
push eax
mov dword [0x4489d4], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0xfffffffffffffffa
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edx, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0xec]
push 0xfa7
push esi
push edx
mov edx, dword [ebp - 0xf8]
push eax
push ecx
push edx
push 0x4001000b
push 0x43d087
push 0x43d088
push 0
call ebx
push edi
push eax
mov dword [0x4489ec], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0xfffffffffffffffa
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [ebp - 0x100]
mov edx, dword [ebp - 0x108]
push eax
mov eax, dword [ebp - 0x104]
push 0xfa8
push esi
push eax
mov eax, dword [ebp - 0x10c]
push ecx
push edx
push eax
push 0x4001000b
push 0x43d08f
push str.BUTTON
push 0
call ebx
push edi
push eax
mov dword [0x4489e4], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call fcn.004014d0
test eax, eax
jne 0x405513
push str.Failed_to_initialize_TrackMouseEvent.
push 1
call fcn.004021f0
add esp, 8
push 0
push 0xfffffffffffffffa
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x114]
push eax
mov eax, dword [ebp - 0x11c]
push 0xfa4
push esi
push ecx
mov ecx, dword [ebp - 0x120]
push edx
push eax
push ecx
push 0x50000000
push 0
push str.msctls_progress32
push 0
call ebx
push edi
push eax
mov dword [0x4489e8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x4489d8]
mov ebx, dword [sym.imp.USER32.dll_UpdateWindow]
push edx
call ebx
mov eax, dword [0x44a8a8]
push eax
call ebx
mov ecx, dword [0x4489d4]
push ecx
call ebx
mov edx, dword [0x4489ec]
push edx
call ebx
mov eax, dword [0x4489e4]
push eax
call ebx
push edi
push esi
call fcn.00401d70
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [ebp - 0x17c]
push ecx
call esi
test eax, eax
je 0x4055e5
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4055c0
lea edx, [ebp - 0x17c]
push edx
call edi
lea eax, [ebp - 0x17c]
push eax
call ebx
push 0
push 0
push 0
lea ecx, [ebp - 0x17c]
push ecx
call esi
test eax, eax
jne 0x4055c0
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [ebp - 0x174]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0042b7bd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10