Function at 0x401000
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [ebp + 8]
and byte [ebp - 0x14], 0
push ebx
push esi
lea eax, [eax*4 + 4]
push edi
xor esi, esi
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 8], str.Fatal_exception_occurred.__Program_will_exit.
call fcn.00401c90
pop ecx
mov edi, eax
mov ecx, dword [ebp + 8]
xor eax, eax
inc ecx
test ecx, ecx
jle 0x401057
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + eax*4]
mov dword [edi + eax*4], ecx
mov ecx, dword [ebp + 8]
inc eax
inc ecx
cmp eax, ecx
jl 0x401045
mov ebx, dword [sym.imp.MSVCRT.dll_getenv]
push str._JAVA_LAUNCHER_DEBUG
call ebx
mov esi, dword [sym.imp.MSVCRT.dll_printf]
pop ecx
test eax, eax
je 0x40107e
push 0x4050bc
mov byte [0x4063a2], 1
call esi
pop ecx
lea eax, [ebp - 0x28]
push edi
push eax
mov eax, 0x104
lea ecx, [ebp - 0x134]
push eax
push ecx
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00402995
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
add esp, 0x20
cmp byte [0x4063a2], 0
je 0x4010c5
call fcn.00402e79
mov edi, eax
mov dword [ebp - 0x20], edx
jmp 0x4010c8
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.00402b9a
pop ecx
test al, al
pop ecx
jne 0x4010e6
push 6
call dword [sym.imp.MSVCRT.dll_exit]
cmp byte [0x4063a2], 0
je 0x40110b
call fcn.00402e79
sub eax, edi
sbb edx, dword [ebp - 0x20]
push edx
push eax
call fcn.00402ebf
push eax
push str._ld_micro_seconds_to_LoadJavaVM_n
call esi
add esp, 0x10
add dword [ebp + 0xc], 4
dec dword [ebp + 8]
lea eax, [ebp + 0xc]
mov dword [0x406398], 0x405100
push eax
lea eax, [ebp + 8]
push eax
call fcn.00401f7b
pop ecx
pop ecx
call fcn.00402048
test al, al
jne 0x40113c
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push 0x405108
call ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004017bf
add esp, 0x18
test al, al
jne 0x40116c
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll_exit]
xor ebx, ebx
cmp dword [ebp - 0x10], ebx
je 0x40117c
push dword [ebp - 0x10]
call fcn.004016df
pop ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.004021f9
add esp, 0x10
cmp byte [0x4063a2], 0
je 0x4011a3
call fcn.00402e79
mov edi, eax
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00401bcf
add esp, 0xc
test al, al
jne 0x4011d1
push 1
push str.Could_not_create_the_Java_virtual_machine.
call fcn.00402efd
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
cmp byte [0x4063a0], 0
jne 0x4011e3
cmp byte [0x4063a1], 0
je 0x401229
push dword [ebp - 4]
call fcn.00402305
mov eax, dword [ebp - 4]
pop ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
jne 0x40141b
cmp byte [0x4063a0], al
je 0x40120a
mov dword [ebp - 0x18], ebx
jmp 0x401238
cmp byte [0x4063a1], 0
je 0x401229
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push 0x405144
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
pop ecx
pop ecx
cmp dword [ebp - 0x10], ebx
jne 0x401240
cmp dword [ebp - 0xc], ebx
jne 0x401240
call fcn.00402345
mov dword [ebp - 8], ebx
jmp 0x4014f0
call fcn.0040294d
cmp byte [0x4063a2], 0
je 0x4012b3
call fcn.00402e79
sub eax, edi
sbb edx, dword [ebp - 0x20]
push edx
push eax
call fcn.00402ebf
push eax
push str._ld_micro_seconds_to_InitializeJVM_n
call esi
add esp, 0x10
cmp byte [0x4063a2], 0
je 0x4012b3
mov eax, dword [ebp - 0xc]
xor edi, edi
test eax, eax
jne 0x401281
mov eax, 0x4063b0
push eax
push str.Main_Class_is__s_n
call esi
push dword [ebp + 8]
push str.Apps_argc_is__d_n
call esi
add esp, 0x10
cmp dword [ebp + 8], 0
jle 0x4012b3
mov eax, dword [ebp + 0xc]
push dword [eax + edi*4]
push edi
push str.____argv__2d____s_n
call esi
add esp, 0xc
inc edi
cmp edi, dword [ebp + 8]
jl 0x40129c
xor edi, edi
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x10], edi
je 0x401366
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.00401e66
pop ecx
mov esi, eax
mov eax, dword [ebp - 4]
pop ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
jne 0x40141b
cmp esi, edi
jne 0x401323
mov edi, dword [ebp - 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, str.Failed_to_load_Main_Class_manifest_attribute_from_n_s
mov edx, ecx
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
push edx
call fcn.00401c90
push dword [ebp - 0x10]
mov dword [ebp - 8], eax
push esi
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x4014e2
mov eax, dword [ebp - 4]
push edi
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2a4]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x40141b
push eax
push dword [ebp - 4]
call fcn.00401dcc
pop ecx
mov ebx, eax
mov eax, dword [ebp - 4]
pop ecx
test ebx, ebx
mov ecx, dword [eax]
jne 0x4013e5
push eax
call dword [ecx + 0x40]
mov dword [ebp - 8], str.Could_not_find_the_main_class.__Program_will_exit.
jmp 0x4014f0
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00401cb4
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
jne 0x4013aa
mov edi, dword [ebp - 0xc]
or ecx, 0xffffffff
xor eax, eax
mov esi, str.Failed_to_load_Main_Class:__s
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
push edx
call fcn.00401c90
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x401313
mov eax, dword [ebp - 4]
push edi
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2a4]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x40141b
push eax
push dword [ebp - 4]
call fcn.00401dcc
pop ecx
mov ebx, eax
mov eax, dword [ebp - 4]
pop ecx
test ebx, ebx
mov ecx, dword [eax]
jne 0x4013e5
push eax
call dword [ecx + 0x40]
mov dword [ebp - 8], str.Could_not_find_the_main_class._Program_will_exit.
jmp 0x4014f0
push dword [ebp - 0xc]
push esi
push eax
call dword [ecx + 0x2a8]
mov eax, dword [ebp - 4]
push str.__Ljava_lang_String__V
push str.main
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c4]
mov dword [ebp - 0x20], eax
test eax, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
jne 0x401435
push eax
call dword [ecx + 0x3c]
test eax, eax
je 0x401429
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
jmp 0x4014f0
mov dword [ebp - 8], str.No_main_method_found_in_specified_class.
jmp 0x4014e2
push 1
push dword [ebp - 0x20]
push ebx
push eax
call dword [ecx + 0x24]
mov edi, eax
mov eax, dword [ebp - 4]
test edi, edi
je 0x40141e
mov esi, dword [eax]
push 0x4052b8
push str.getModifiers
push edi
push eax
call dword [esi + 0x7c]
push eax
push dword [ebp - 4]
call dword [esi + 0x84]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
jne 0x401420
push esi
push edi
push eax
call dword [ecx + 0xc4]
add esp, 0xc
test al, 1
jne 0x401490
mov dword [ebp - 8], str.Main_method_not_public.
jmp 0x4014e2
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00401d4f
add esp, 0xc
test eax, eax
je 0x40141b
mov ecx, dword [ebp - 4]
push eax
push dword [ebp - 0x20]
mov edx, dword [ecx]
push ebx
push ecx
call dword [edx + 0x234]
mov eax, dword [ebp - 4]
add esp, 0x10
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
test eax, eax
jne 0x40141b
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
je 0x4014e8
mov dword [ebp - 8], str.Could_not_detach_main_thread.
mov byte [ebp - 0x14], 1
jmp 0x4014f0
and dword [ebp - 0x18], 0
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp dword [ebp - 8], 0
je 0x40150c
push dword [ebp - 0x14]
push dword [ebp - 8]
call fcn.00402efd
pop ecx
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll_exit]