Function at 0x401000
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_getenv]
xor ebx, ebx
push str._JAVA_LAUNCHER_DEBUG
and byte [ebp - 0x18], bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], str.Fatal_exception_occurred.__Program_will_exit.
call edi
mov esi, dword [sym.imp.MSVCRT.dll_printf]
pop ecx
test eax, eax
je 0x40104e
push 0x4080a8
mov byte [0x40afb2], 1
call esi
pop ecx
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401877
mov eax, dword [ebp + 8]
lea eax, [eax*4 + 4]
push eax
call fcn.004020bf
mov edx, dword [ebp + 8]
add esp, 0x10
xor ecx, ecx
inc edx
test edx, edx
jle 0x40108c
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + ecx*4]
mov dword [eax + ecx*4], edx
mov edx, dword [ebp + 8]
inc ecx
inc edx
cmp ecx, edx
jl 0x40107a
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.00403028
add esp, 0x1c
cmp byte [0x40afb2], 0
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
je 0x4010cd
call fcn.00403514
mov ebx, eax
mov dword [ebp - 0x20], edx
jmp 0x4010d0
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.00403235
pop ecx
test al, al
pop ecx
jne 0x4010ee
push 6
call dword [sym.imp.MSVCRT.dll_exit]
cmp byte [0x40afb2], 0
je 0x401113
call fcn.00403514
sub eax, ebx
sbb edx, dword [ebp - 0x20]
push edx
push eax
call fcn.0040355a
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 [0x40afa8], 0x4080ec
push eax
lea eax, [ebp + 8]
push eax
call fcn.004024b2
pop ecx
pop ecx
call fcn.0040258b
test al, al
jne 0x401144
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push 0x4080f4
call edi
lea eax, [ebp - 0x14]
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.00401b8a
add esp, 0x18
test al, al
jne 0x401174
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_exit]
xor edi, edi
cmp dword [ebp - 0x10], edi
je 0x401184
push dword [ebp - 0x10]
call fcn.00401797
pop ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.0040273c
push 0x408104
call fcn.004038b4
add esp, 0x14
cmp byte [0x40afb2], 0
je 0x4011b5
call fcn.00403514
mov ebx, 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.00401ffe
add esp, 0xc
test al, al
jne 0x4011e3
push 1
push str.Could_not_create_the_Java_virtual_machine.
call fcn.00403598
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
cmp byte [0x40afb0], 0
jne 0x4011f5
cmp byte [0x40afb1], 0
je 0x40123b
push dword [ebp - 4]
call fcn.00402848
mov eax, dword [ebp - 4]
pop ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
jne 0x401430
cmp byte [0x40afb0], al
je 0x40121c
mov dword [ebp - 0x14], edi
jmp 0x40124a
cmp byte [0x40afb1], 0
je 0x40123b
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push 0x408144
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
pop ecx
pop ecx
cmp dword [ebp - 0x10], edi
jne 0x401252
cmp dword [ebp - 0xc], edi
jne 0x401252
call fcn.00402888
mov dword [ebp - 8], edi
jmp 0x40150a
call fcn.00402fe0
cmp byte [0x40afb2], 0
je 0x4012c3
call fcn.00403514
sub eax, ebx
sbb edx, dword [ebp - 0x20]
push edx
push eax
call fcn.0040355a
push eax
push str._ld_micro_seconds_to_InitializeJVM_n
call esi
add esp, 0x10
cmp byte [0x40afb2], 0
je 0x4012c3
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x401291
mov eax, 0x40afc8
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 0x4012c3
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 0x4012ac
xor edi, edi
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x10], edi
je 0x401376
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040239d
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 0x401430
cmp esi, edi
jne 0x401333
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.004020bf
push dword [ebp - 0x10]
mov dword [ebp - 8], eax
push esi
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x4014a0
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 0x401430
push eax
push dword [ebp - 4]
call fcn.00402303
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
jne 0x4013f5
push dword [ebp - 4]
call fcn.004035f1
pop ecx
mov dword [ebp - 8], str.Could_not_find_the_main_class.__Program_will_exit.
jmp 0x40150a
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.004020e3
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
jne 0x4013ba
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.004020bf
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x401323
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 0x401430
push eax
push dword [ebp - 4]
call fcn.00402303
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
jne 0x4013f5
push dword [ebp - 4]
call fcn.004035f1
pop ecx
mov dword [ebp - 8], str.Could_not_find_the_main_class._Program_will_exit.
jmp 0x40150a
mov eax, dword [ebp - 4]
push dword [ebp - 0xc]
mov ecx, dword [eax]
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 0x401447
push eax
call dword [ecx + 0x3c]
test eax, eax
je 0x40143e
push dword [ebp - 4]
call fcn.004035f1
pop ecx
jmp 0x40150a
mov dword [ebp - 8], str.No_main_method_found_in_specified_class.
jmp 0x4014a0
push 1
push dword [ebp - 0x20]
push ebx
push eax
call dword [ecx + 0x24]
mov edi, eax
test edi, edi
je 0x401430
mov eax, dword [ebp - 4]
push 0x4082b8
push str.getModifiers
push edi
mov esi, dword [eax]
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
jne 0x401430
mov eax, dword [ebp - 4]
push esi
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
add esp, 0xc
test al, 1
jne 0x4014a6
mov dword [ebp - 8], str.Main_method_not_public.
mov byte [ebp - 0x18], 1
jmp 0x40150a
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00402286
add esp, 0xc
test eax, eax
je 0x401430
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]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
je 0x401506
mov dword [ebp - 8], str.Could_not_detach_main_thread.
mov byte [ebp - 0x18], 1
mov dword [ebp - 0x14], 1
jmp 0x40150a
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 0x40152f
cmp dword [0x40afc0], 0
jne 0x40152f
push dword [ebp - 0x18]
push dword [ebp - 8]
call fcn.00403598
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret