Function at 0x401000
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
and byte [ebp - 5], 0
push ebx
push esi
push edi
xor esi, esi
push str._JAVA_LAUNCHER_DEBUG
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.MSVCRT.dll_getenv]
test eax, eax
pop ecx
je 0x401041
push 0x404028
mov byte [0x404dfe], 1
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
lea eax, [ebp - 0x27c]
push 0x104
push eax
call fcn.004021c3
pop ecx
test al, al
pop ecx
jne 0x401075
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str.Error:_could_not_find_Java_2_Runtime_Environment._n
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
pop ecx
pop ecx
push 2
jmp 0x401563
lea eax, [ebp - 0x27c]
push eax
call fcn.00401fb3
mov edi, eax
pop ecx
cmp edi, 1
mov dword [0x404dc0], edi
jge 0x401096
push 3
jmp 0x401563
cmp dword [ebp + 8], 1
jle 0x4010f5
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 4]
cmp byte [ebx], 0x2d
jne 0x4010f5
cmp edi, esi
mov dword [ebp - 0x1c], esi
jle 0x4010f5
mov dword [ebp - 0x18], 0x404dcc
mov eax, dword [ebp - 0x18]
mov esi, ebx
mov ecx, dword [eax]
mov dl, byte [esi]
mov al, dl
cmp dl, byte [ecx]
jne 0x4010de
test al, al
je 0x4010da
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [ecx + 1]
jne 0x4010de
inc esi
inc esi
inc ecx
inc ecx
test al, al
jne 0x4010bc
xor eax, eax
jmp 0x4010e3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40114c
inc dword [ebp - 0x1c]
add dword [ebp - 0x18], 4
cmp dword [ebp - 0x1c], edi
jl 0x4010b5
xor esi, esi
xor ebx, ebx
cmp edi, esi
jle 0x40112f
mov esi, 0x404dcc
mov eax, dword [esi]
lea ecx, [ebp - 0x178]
inc eax
push 0x104
push ecx
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.0040228b
add esp, 0x10
test al, al
jne 0x4011a0
inc ebx
add esi, 4
cmp ebx, dword [0x404dc0]
jl 0x401100
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str.Error:_could_not_find_a_JVM._n
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
pop ecx
pop ecx
push 5
jmp 0x401563
and byte [ebp - 0x178], 0
lea eax, [ebp - 0x178]
push 0x104
lea esi, [ebx + 1]
push eax
lea eax, [ebp - 0x27c]
push esi
push eax
mov byte [ebp - 5], 1
call fcn.0040228b
add esp, 0x10
test al, al
jne 0x4011a0
lea eax, [ebp - 0x178]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push esi
add eax, 0x40
push str.Error:_no___s_JVM_at___s._n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push 4
jmp 0x401563
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
lea eax, [ebp - 0x178]
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.004022bd
pop ecx
test al, al
pop ecx
jne 0x4011cf
mov dword [0x404e00], 1
push 6
jmp 0x401563
add dword [ebp + 0xc], 4
dec dword [ebp + 8]
cmp byte [ebp - 5], 0
mov dword [0x404df4], 0x4040bc
je 0x4011ed
add dword [ebp + 0xc], 4
dec dword [ebp + 8]
push str.CLASSPATH
call dword [sym.imp.MSVCRT.dll_getenv]
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x401204
mov esi, 0x4040d0
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], 0x10001
push eax
call dword [ebp - 0x28]
test eax, eax
jne 0x401541
mov edi, dword [ebp - 0x54]
cmp edi, ebx
je 0x401541
or ecx, 0xffffffff
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
lea eax, [edx + ecx + 2]
push eax
call fcn.00401add
push esi
push 0x3b
push dword [ebp - 0x54]
mov edi, eax
push str._s_c_s
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
push edi
call fcn.00401569
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00401649
add esp, 0x30
test al, al
jne 0x40128c
mov dword [0x404e00], 2
jmp 0x40153c
cmp dword [ebp - 0xc], ebx
je 0x40129a
push dword [ebp - 0xc]
call fcn.00401569
pop ecx
cmp byte [0x404dfe], 0
je 0x4012ae
call fcn.004025a2
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00401a0e
add esp, 0xc
test al, al
jne 0x4012eb
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str.Could_not_create_the_Java_virtual_machine._n
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
pop ecx
mov dword [0x404e00], 3
pop ecx
jmp 0x401561
cmp byte [0x404dfc], 0
mov ebx, dword [sym.imp.MSVCRT.dll_fprintf]
jne 0x401303
cmp byte [0x404dfd], 0
je 0x401343
push dword [ebp - 4]
call fcn.00401dc8
mov eax, dword [ebp - 4]
pop ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
jne 0x401503
cmp byte [0x404dfc], al
jne 0x40152f
cmp byte [0x404dfd], al
je 0x401343
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push 0x404134
add eax, 0x40
push eax
call ebx
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0xc], esi
jne 0x401359
cmp dword [ebp - 0x10], esi
jne 0x401359
call fcn.00401e08
jmp 0x401533
call fcn.00402194
cmp byte [0x404dfe], 0
je 0x4013d1
call fcn.004025a2
sub eax, dword [ebp - 0x20]
sbb edx, dword [ebp - 0x1c]
push edx
push eax
call fcn.004025e8
mov edi, dword [sym.imp.MSVCRT.dll_printf]
push eax
push str._ld_micro_seconds_to_InitializeJVM_n
call edi
add esp, 0x10
cmp byte [0x404dfe], 0
je 0x4013d1
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40139f
mov eax, 0x404e08
push eax
push str.Main_Class_is__s_n
call edi
push dword [ebp + 8]
push str.Apps_argc_is__d_n
call edi
add esp, 0x10
cmp dword [ebp + 8], 0
jle 0x4013d1
mov eax, dword [ebp + 0xc]
push dword [eax + esi*4]
push esi
push str.____argv__2d____s_n
call edi
add esp, 0xc
inc esi
cmp esi, dword [ebp + 8]
jl 0x4013ba
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 1
je 0x401456
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00401cb3
pop ecx
mov edi, eax
mov eax, dword [ebp - 4]
pop ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
jne 0x401503
test edi, edi
jne 0x40141d
push dword [ebp - 0xc]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.Failed_to_load_Main_Class_manifest_attribute_from_n_s_n
push eax
call ebx
add esp, 0xc
jmp 0x401533
mov eax, dword [ebp - 4]
push 0
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2a4]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x401503
push eax
push dword [ebp - 4]
call fcn.00401c19
pop ecx
mov esi, eax
mov eax, dword [ebp - 4]
pop ecx
push dword [ebp - 0x10]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x2a8]
jmp 0x401465
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.00401c19
pop ecx
mov esi, eax
pop ecx
mov eax, dword [ebp - 4]
test esi, esi
mov ecx, dword [eax]
jne 0x401481
push eax
call dword [ecx + 0x40]
mov dword [0x404e00], 4
jmp 0x401533
push str.__Ljava_lang_String__V
push str.main
push esi
push eax
call dword [ecx + 0x1c4]
mov edi, eax
test edi, edi
jne 0x4014cf
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
je 0x4014b1
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x4014c3
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str.No_main_method_found_in_specified_class._n
add eax, 0x40
push eax
call ebx
pop ecx
pop ecx
mov dword [0x404e00], 5
jmp 0x401533
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00401b01
add esp, 0xc
test eax, eax
je 0x401503
mov ecx, dword [ebp - 4]
push eax
push edi
push esi
mov edx, dword [ecx]
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
je 0x40150e
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x401533
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
je 0x40152f
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str.Could_not_detach_main_thread._n
add eax, 0x40
push eax
call ebx
pop ecx
pop ecx
jmp 0x401533
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x14]
jmp 0x401564
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str.Could_not_get_default_system_class_path._n
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
pop ecx
mov dword [0x404e00], 2
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret