Function at 0x403f37
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0xb0
mov ebx, ecx
call fcn.0040e550
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov dword [esp + 8], eax
mov dword [esp + 4], str.int_main__d___char_0x_X_
mov dword [esp], 0x1000000
call fcn.00401559
mov eax, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
mov eax, dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
call eax
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403fd8
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.HFSExplorer_launch_error
mov dword [esp + 4], str.Could_not_get_argv__FATAL...
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxW]
call eax
sub esp, 0x10
mov eax, 0xfffffffc
jmp 0x4049ba
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
je 0x403ffd
cmp dword [ebp - 0x14], 0
je 0x403ffd
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.004127c0
mov eax, dword [ebp - 0x10]
cmp eax, 0x3ffffffe
ja 0x40403e
add eax, eax
mov dword [esp], eax
call fcn.004127f0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call eax
sub esp, 0xc
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x40408d
jmp 0x404043
call fcn.00412fc0
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.GetModuleFileName_failed_with_error
call fcn.00401717
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.HFSExplorer_launch_error
mov dword [esp + 4], str.Problem__1__with_getting_the_fully_qualified_path_of_the_executable__FATAL...
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxW]
call eax
sub esp, 0x10
mov eax, 0xfffffffb
jmp 0x4049ba
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x10]
jne 0x40409d
shl dword [ebp - 0x10], 1
jmp 0x403fe6
nop
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Got_fully_qualified_path:___S_
mov dword [esp], 0x100
call fcn.00401559
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.004105b8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
sub eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
js 0x4040f1
mov eax, dword [ebp - 0x18]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x14]
add eax, edx
movzx eax, word [eax]
cmp ax, 0x5c
je 0x4040f0
sub dword [ebp - 0x18], 1
jmp 0x4040d0
nop
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
cmp eax, 0x3ffffffe
ja 0x404192
add eax, eax
mov dword [esp], eax
call fcn.004127f0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
add eax, 0x7fffffff
add eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.00410618
mov eax, dword [ebp - 0x18]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x44]
add eax, edx
mov word [eax], 0
mov eax, dword [ebp - 0x44]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Got_fully_qualified_parent_dir:___S_
mov dword [esp], 0x100
call fcn.00401559
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.0040375e
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call eax
sub esp, 8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x3ffffffe
ja 0x4041d5
jmp 0x404197
call fcn.00412fc0
mov eax, dword [ebp - 0x48]
add eax, eax
mov dword [esp], eax
call fcn.004127f0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x1c], 0xffffffff
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call eax
sub esp, 8
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
add eax, 1
cmp dword [ebp - 0x48], eax
je 0x404248
jmp 0x4041da
call fcn.00412fc0
mov eax, dword [ebp - 0x50]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 8], eax
mov dword [esp + 4], str.currentWorkingDirectoryLength_d__actualCWDLength_d
mov dword [esp], 0x100
call fcn.00401559
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.GetCurrentDirectory_failed_with_error
call fcn.00401717
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.HFSExplorer_launch_error
mov dword [esp + 4], str.Could_not_get_the_current_working_directory.
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxW]
call eax
sub esp, 0x10
mov dword [ebp - 0x1c], 0xfffffffd
jmp 0x404984
mov eax, dword [sym.imp.KERNEL32.dll_GetVersion]
call eax
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
movzx eax, al
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.CWD:___S_
mov dword [esp], 0x100
call fcn.00401559
mov eax, dword [ebp - 0x7c]
cmp eax, 1
jne 0x404284
cmp dword [ebp - 0x54], 5
ja 0x4042a8
mov eax, dword [ebp - 0x7c]
cmp eax, 1
jle 0x4042af
mov eax, dword [ebp - 0xc]
add eax, 4
mov eax, dword [eax]
mov dword [esp + 4], str._invokeuac
mov dword [esp], eax
call fcn.004105c0
test eax, eax
jne 0x4042af
mov eax, 1
jmp 0x4042b4
mov eax, 0
test al, al
je 0x4043fa
mov dword [esp + 4], str.__invokeuac__specified._Forking_off_elevated_process...
mov dword [esp], 0x100
call fcn.00401559
mov eax, dword [ebp - 0x7c]
mov edx, 2
cmp eax, 2
cmovl eax, edx
sub eax, 1
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
add eax, 1
shl eax, 2
mov dword [esp], eax
call fcn.00410620
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x40431c
mov dword [esp + 4], str.Failed_to_allocate_subprocess_argv.
mov dword [esp], 0x10
call fcn.00401559
mov eax, 0xffffffff
jmp 0x4049ba
mov eax, dword [ebp - 0x5c]
mov dword [eax], str._invokeduac
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x7c]
sub eax, 1
cmp dword [ebp - 0x20], eax
jge 0x404362
mov eax, dword [ebp - 0x20]
add eax, 1
lea edx, [eax*4]
mov eax, dword [ebp - 0xc]
add eax, edx
mov edx, dword [ebp - 0x20]
lea ecx, [edx*4]
mov edx, dword [ebp - 0x5c]
add edx, ecx
mov eax, dword [eax]
mov dword [edx], eax
add dword [ebp - 0x20], 1
jmp 0x40432c
mov eax, dword [ebp - 0x20]
lea edx, [eax*4]
mov eax, dword [ebp - 0x5c]
add eax, edx
mov dword [eax], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x5c]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x58]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x4c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00403914
test al, al
je 0x4043a6
mov dword [ebp - 0x1c], 0
jmp 0x4043ea
mov dword [ebp - 0x1c], 0xfffffffa
mov dword [esp + 4], 0x416dc0
mov dword [esp], 0x10
call fcn.00401559
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.HFSExplorer_launch_error
mov dword [esp + 4], str.Failed_to_create_elevated__UAC__process_
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxW]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.00410638
jmp 0x404984
mov dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x7c]
cmp eax, 1
jle 0x40442f
mov eax, dword [ebp - 0xc]
add eax, 4
mov eax, dword [eax]
mov dword [esp + 4], str._invokeduac
mov dword [esp], eax
call fcn.004105c0
test eax, eax
jne 0x40442f
mov eax, 1
jmp 0x404434
mov eax, 0
test al, al
je 0x404445
add dword [ebp - 0xc], 4
mov eax, dword [ebp - 0x7c]
sub eax, 1
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
cmp eax, 1
jle 0x40459c
mov eax, dword [ebp - 0xc]
add eax, 4
mov eax, dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SearchPathW]
call eax
sub esp, 0x18
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 8], eax
mov dword [esp + 4], str.fullPathNameLength:__d
mov dword [esp], 0x100
call fcn.00401559
cmp dword [ebp - 0x60], 0
jne 0x4044cd
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.Could_not_get_length_of_full_path_name._Last_error:
call fcn.00401717
jmp 0x40459c
mov eax, dword [ebp - 0x60]
cmp eax, 0x3ffffffe
ja 0x404552
mov eax, dword [ebp - 0x60]
add eax, eax
mov dword [esp], eax
call fcn.004127f0
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x60]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x84]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00410610
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0xc]
add eax, 4
mov eax, dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SearchPathW]
call eax
sub esp, 0x18
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x404570
jmp 0x404557
call fcn.00412fc0
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.Could_not_convert_args_1__into_pathname._Last_error:
call fcn.00401717
jmp 0x40459c
mov eax, dword [ebp - 0x84]
mov dword [esp + 8], eax
mov dword [esp + 4], str.full_pathname:___S_
mov dword [esp], 0x100
call fcn.00401559
mov eax, dword [ebp - 0xc]
lea edx, [eax + 4]
mov eax, dword [ebp - 0x84]
mov dword [edx], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call eax
sub esp, 4
mov dword [esp], 0x4159b2
call fcn.004105b8
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4159b2
mov dword [esp], str.PATH
call fcn.00401ad9
xor eax, 1
test al, al
je 0x4045f5
mov dword [esp + 4], str.Error_while_appending_____to_PATH._n
mov dword [esp], 0x100
call fcn.00401559
mov eax, 0
jmp 0x404982
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.004105b8
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov dword [esp], str.PATH
call fcn.00401ad9
xor eax, 1
test al, al
je 0x404643
mov eax, dword [ebp - 0x44]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Error_while_appending___S__to_PATH._n
mov dword [esp], 0x100
call fcn.00401559
mov eax, 0
jmp 0x404982
mov dword [esp], str...lib
call fcn.004105b8
mov dword [esp + 8], eax
mov dword [esp + 4], str...lib
mov dword [esp], str.PATH
call fcn.00401ad9
xor eax, 1
test al, al
je 0x40468c
mov dword [esp + 4], str.Error_while_appending__..lib__to_PATH._n
mov dword [esp], 0x100
call fcn.00401559
mov eax, 0
jmp 0x404982
mov eax, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call eax
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x4046bd
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.GetEnvironmentStrings_failed:
call fcn.00401717
mov eax, 0
jmp 0x404982
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x24], eax
mov dword [esp + 4], str.Current_environment:
mov dword [esp], 0x100
call fcn.00401559
mov eax, dword [ebp - 0x24]
movzx eax, word [eax]
test ax, ax
je 0x404717
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], str.___S
mov dword [esp], 0x100
call fcn.00401559
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrlenW]
call eax
sub esp, 4
add eax, 1
add eax, eax
add dword [ebp - 0x24], eax
jmp 0x4046d7
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
call eax
sub esp, 4
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
cmp eax, 0x1fffffff
ja 0x404758
mov eax, dword [ebp - 0x6c]
shl eax, 2
mov dword [esp], eax
call fcn.004127f0
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
jmp 0x40475d
call fcn.00412fc0
cmp dword [ebp - 0x28], 0
jg 0x40478a
mov eax, dword [ebp - 0x2c]
lea edx, [eax + 1]
mov dword [ebp - 0x2c], edx
lea edx, [eax*4]
mov eax, dword [ebp - 0x70]
add edx, eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax*4 + 0x41402c]
mov dword [edx], eax
add dword [ebp - 0x28], 1
jmp 0x40475d
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x7c]
cmp dword [ebp - 0x28], eax
jge 0x4047c8
mov eax, dword [ebp - 0x28]
lea edx, [eax*4]
mov eax, dword [ebp - 0xc]
lea ecx, [edx + eax]
mov eax, dword [ebp - 0x2c]
lea edx, [eax + 1]
mov dword [ebp - 0x2c], edx
lea edx, [eax*4]
mov eax, dword [ebp - 0x70]
add edx, eax
mov eax, dword [ecx]
mov dword [edx], eax
add dword [ebp - 0x28], 1
jmp 0x404791
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x6c]
je 0x4047f2
mov eax, dword [ebp - 0x6c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.ASSERTION_FAILED:_curArg__d____javaArgsLength__d_
mov dword [esp], 0x10
call fcn.00401559
lea eax, [ebp - 0x8c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x88]
mov dword [esp], eax
call fcn.00402639
test al, al
je 0x404896
mov byte [ebp - 0x2d], 0
mov eax, dword [ebp - 0x88]
mov edx, dword [ebp - 0x70]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x6c]
mov dword [esp + 4], edx
mov dword [esp], eax
call 0x402af4
test al, al
je 0x404841
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2d], 1
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x88]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00402a8f
movzx eax, byte [ebp - 0x2d]
xor eax, 1
test al, al
je 0x40495e
mov eax, dword [ebp - 0x70]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call 0x4035c5
test al, al
je 0x40488a
mov dword [ebp - 0x1c], 0
jmp 0x40495e
mov dword [ebp - 0x1c], 0xfffffff9
jmp 0x40495e
mov eax, dword [ebp - 0x70]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call 0x4035c5
test al, al
je 0x4048b8
mov dword [ebp - 0x1c], 0
jmp 0x40495e
mov dword [esp + 0xc], 0x31
mov dword [esp + 8], str.HFSExplorer:_Launch_error
mov dword [esp + 4], str.No_Java_runtime_environment_found._HFSExplorer_cannot_function_without_Java._nPress__OK__to_open_up_http:__www.java.com_where_you_can_download_a_Java_runtime_environment_for_your_system.
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxW]
call eax
sub esp, 0x10
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 1
jne 0x404957
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.http:__www.java.com
mov dword [esp + 4], str.open
mov dword [esp], 0
mov eax, dword [sym.imp.SHELL32.dll_ShellExecuteW]
call eax
sub esp, 0x18
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
cmp eax, 0x20
ja 0x404957
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.HFSExplorer:_Error_opening_URL
mov dword [esp + 4], str.Error_while_opening_your_web_browser._Please_browse_to_http:__www.java.com_manually...
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxW]
call eax
sub esp, 0x10
mov dword [ebp - 0x1c], 0xfffffffe
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x404984
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x404984
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call fcn.004127c0
jmp 0x404984
jmp 0x4049ba
cmp dword [ebp - 0x4c], 0
je 0x404995
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call fcn.004127c0
cmp dword [ebp - 0x44], 0
je 0x4049a6
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.004127c0
cmp dword [ebp - 0x14], 0
je 0x4049b7
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.004127c0
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret