Function at 0x40ea84
Capabilities:
Accept command line arguments
Create directory
Create thread
Get common file path
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x436f47
mov eax, dword fs:[0]
push eax
mov eax, 0x5df0
call fcn.0041d7b0
mov eax, dword [0x450970]
xor eax, esp
mov dword [esp + 0x5dec], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x450970]
xor eax, esp
push eax
lea eax, [esp + 0x5e04]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x5e14]
push str.Starting_work
mov dword [esp + 0x18], ebx
call fcn.0040b684
pop ecx
test ebx, ebx
je 0x40eb05
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
push 1
push 0x402
mov edi, 0x3e9
push edi
push ebx
call esi
push 0x1900000
push 0
push 0x401
push edi
push ebx
call esi
cmp byte [0x463841], 0
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, 0x4620c0
mov esi, 0x1770
jne 0x40eb34
mov ecx, dword [esp + 0x14]
call fcn.0040e7df
cmp byte [0x463841], 0
je 0x40ebc7
push ebx
push esi
call ebp
push esi
call fcn.0041d128
push ebx
mov edi, eax
push str._si4jruntime.jar
push edi
call fcn.0041e231
push edi
call fcn.0040470e
add esp, 0x14
test al, al
jne 0x40eb6b
push str.could_not_find_i4jruntime.jar
call fcn.0040b684
pop ecx
mov byte [0x463842], 1
cmp byte [0x463842], 0
jne 0x40eb9f
push ebx
push str._si4jparams.conf
push edi
call fcn.0041e231
push edi
call fcn.0040470e
add esp, 0x10
test al, al
jne 0x40eb9f
push str.could_not_find_i4jparams.conf
call fcn.0040b684
pop ecx
mov byte [0x463842], 1
push edi
call fcn.0041d558
mov al, byte [0x463842]
pop ecx
test al, al
je 0x40ebb6
mov byte [0x4620c0], 0
cmp byte [0x463841], 0
je 0x40ebc7
test al, al
je 0x40ecc8
cmp byte [0x463843], 0
je 0x40ec35
lea eax, [esp + 0x40]
push eax
push esi
call ebp
call fcn.004047c0
push eax
push str._s.test
push ebx
call fcn.0041e231
push ebx
push str.Extracted_dir:__S
call fcn.0040b684
add esp, 0x14
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40ec3a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x40ec3a
call edi
push eax
push ebx
push str.Could_not_create_dir__S___d_
call fcn.0040b684
push 0x43cf80
push 0x3f1
call fcn.00403fa8
add esp, 0x14
jmp 0x40ec3a
call fcn.0040ccf2
call fcn.0040cedc
push ebx
call fcn.004369c5
pop ecx
test eax, eax
je 0x40ec5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Could_not_change_working_dir_to__S___d_
call fcn.0040b625
add esp, 0xc
push 0
call fcn.00403a6b
mov edi, eax
pop ecx
test edi, edi
je 0x40ecc8
cmp byte [0x463865], 0
jne 0x40ecc0
lea eax, [esp + 0x2f20]
push eax
push 0x4e2d
call fcn.0040373f
pop ecx
pop ecx
lea eax, [esp + 0x40]
push eax
cmp edi, 2
jne 0x40ec9b
push 0x4e32
jmp 0x40eca0
push 0x4e30
call fcn.0040373f
pop ecx
pop ecx
push 0x10
lea eax, [esp + 0x2f24]
push eax
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call fcn.00403e4b
pop ecx
push esi
call fcn.0041d128
pop ecx
mov edi, eax
push edi
push esi
call ebp
push edi
push str.Current_working_dir:__S
call fcn.0040b684
push edi
call fcn.0041d558
mov ebp, 0x7d0
push ebp
call fcn.0041d128
push ebp
mov edi, eax
push str.jre.tar.gz
push edi
call fcn.004224e5
push edi
push str.Full_JRE_path:__S
call fcn.0040b684
push edi
call fcn.0040470e
add esp, 0x28
mov byte [0x463866], al
test al, al
jne 0x40ed5c
cmp byte [0x463841], al
je 0x40ed5c
cmp byte [0x463842], al
jne 0x40ed5c
push edi
push str.Checking_restart_JRE:__S
call fcn.0040b684
push ebp
push 0x43c708
push edi
call fcn.004224e5
push edi
push str.Checking_extracted_JRE:__S
call fcn.0040b684
push edi
call fcn.0040470e
add esp, 0x20
mov byte [0x463866], al
push edi
call fcn.0041d558
cmp byte [0x463866], 0
pop ecx
mov eax, str.JRE_included
jne 0x40ed76
mov eax, str.No_JRE_included
push eax
call fcn.0040b684
cmp byte [0x45f140], 0
pop ecx
je 0x40eda1
cmp byte [0x463866], 0
je 0x40eda1
push str.Included_JRE_not_used_because_of_manual_switch
call fcn.0040b684
pop ecx
mov byte [0x463866], 0
push 0xa1
call fcn.00403858
test eax, eax
setne al
xor edi, edi
cmp byte [0x463866], 0
pop ecx
jne 0x40ee84
mov ebp, dword [esp + 0x14]
cmp ebp, edi
setne al
movzx eax, al
push 1
push eax
push 1
call fcn.0040ddbc
add esp, 0xc
cmp byte [0x45f140], 0
jne 0x40edf5
push edi
push edi
push edi
call fcn.0040c78c
add esp, 0xc
test al, al
jne 0x40eec2
cmp byte [0x463865], 0
je 0x40ee61
push 0x9d
call fcn.00403858
pop ecx
test eax, eax
je 0x40ee29
push str.No_JRE_found._Trying_to_download._n
call fcn.00422c6c
call fcn.0041e74f
add eax, 0x20
push eax
call fcn.0041e5d7
pop ecx
pop ecx
jmp 0x40ee65
push str.No_JRE_found
call fcn.0040b625
mov dword [esp], str.No_JRE_found._Aborting._n
call fcn.00422c6c
call fcn.0041e74f
add eax, 0x20
push eax
call fcn.0041e5d7
push 1
push 1
push edi
call fcn.0040ddbc
add esp, 0x14
push 0x53
call fcn.00422bd4
cmp ebp, edi
je 0x40ee6d
push ebp
call fcn.0040e6f7
jmp 0x40eec2
push edi
push 0x40f170
push edi
push 0x67
push dword [0x46383c]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x40eec2
test al, al
je 0x40eec2
inc edi
xor ebp, ebp
cmp dword [esp + 0x14], ebp
push edi
setne al
movzx eax, al
push eax
push edi
call fcn.0040ddbc
push ebp
push ebp
push ebp
call fcn.0040c78c
add esp, 0x18
test al, al
je 0x40eeb5
mov byte [0x463866], 0
jmp 0x40eec0
push edi
push edi
push ebp
call fcn.0040ddbc
add esp, 0xc
xor edi, edi
push ebx
call fcn.004369c5
pop ecx
test eax, eax
je 0x40eee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Could_not_change_working_dir_to__S___d_
call fcn.0040b625
add esp, 0xc
cmp byte [0x463841], 0
je 0x40ef04
cmp byte [0x463842], 0
jne 0x40ef04
cmp byte [0x463866], 0
je 0x40ef48
call fcn.0040e13d
jmp 0x40ef48
cmp byte [0x463866], 0
je 0x40ef2b
push 0x99
call fcn.00403858
neg eax
sbb eax, eax
and eax, 0x64
add eax, 0xc8
pop ecx
mov dword [0x463868], eax
jmp 0x40ef35
mov dword [0x463868], 0x64
cmp byte [0x463866], 0
je 0x40ef48
push dword [esp + 0x14]
call fcn.0040e1e6
pop ecx
cmp byte [0x463841], 0
je 0x40ef5e
cmp byte [0x463842], 0
je 0x40f04d
push 0x7d2
call fcn.00403858
push esi
mov dword [esp + 0x2c], eax
call fcn.0041d128
push esi
mov ebp, eax
call fcn.0041d128
push esi
push ebp
push 0x7d3
mov dword [esp + 0x34], eax
call fcn.004037a1
mov dword [esp + 0x30], edi
mov edi, 0x438e34
push edi
push ebp
call fcn.0041e0b0
add esp, 0x20
cmp dword [esp + 0x24], 0
mov esi, eax
jle 0x40f03a
test esi, esi
je 0x40f03a
push esi
call fcn.0041d280
pop ecx
test eax, eax
je 0x40f03a
push esi
push ebx
push 0x438e2c
push dword [esp + 0x28]
call fcn.0041e231
push str..pack
call fcn.0041d280
add esp, 0x14
push str..pack
mov dword [esp + 0x24], esi
sub dword [esp + 0x24], eax
push esi
call fcn.0041d280
add eax, dword [esp + 0x28]
pop ecx
push eax
call fcn.0041ebd0
pop ecx
pop ecx
test eax, eax
jne 0x40f01c
push esi
push 0x43cd4c
call fcn.0040b684
pop ecx
pop ecx
push dword [esp + 0x1c]
call fcn.00405ed5
push eax
call fcn.0040fc2c
pop ecx
pop ecx
inc dword [esp + 0x18]
push edi
push 0
call fcn.0041e0b0
mov esi, eax
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x20], eax
pop ecx
pop ecx
jl 0x40efaa
push ebp
call fcn.0041d558
push dword [esp + 0x20]
call fcn.0041d558
pop ecx
pop ecx
xor edi, edi
cmp byte [0x463843], 0
je 0x40f0ab
push 0x43cd48
push str.unextracted.txt
call fcn.00421948
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
jne 0x40f08a
push str.Could_not_write_file_with_unextracted_position
call fcn.0040b625
mov dword [esp], 0x43ccd0
push 0x3f1
call fcn.00403fa8
pop ecx
pop ecx
call fcn.00401066
push eax
push 0x43b540
push esi
call fcn.0041e633
push esi
call fcn.0041f6b2
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x40f0d0
lea eax, [esp + 0x18]
push eax
push edi
push esi
push 0x40def1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
cmp esi, edi
setne al
movzx eax, al
push 1
push eax
push 1
call fcn.0040ddbc
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.00417a42
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x5e10], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.0040d672
lea eax, [esp + 0x30]
push 1
push eax
call fcn.00407eaa
add esp, 0x10
test al, al
jne 0x40f131
push str.Could_not_start_JVM
call fcn.0040b625
push edi
push 0x3ed
call fcn.00403fa8
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.00406cf9
push dword [esp + 0x28]
call fcn.0041d558
pop ecx
xor eax, eax
mov ecx, dword [esp + 0x5e04]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5dec]
xor ecx, esp
call fcn.0041d798
add esp, 0x5dfc
ret 4