Function at 0x401000
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
and byte [ebp - 5], 0
push ebx
push esi
push edi
xor edi, edi
push str._JAVA_LAUNCHER_DEBUG
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.MSVCRT.dll_getenv]
mov ebx, dword [sym.imp.MSVCRT.dll_printf]
pop ecx
test eax, eax
je 0x401043
push 0x404084
mov byte [0x404f0e], 1
call ebx
pop ecx
lea eax, [ebp - 0x234]
push 0x104
push eax
call fcn.0040240e
pop ecx
test al, al
pop ecx
jne 0x401077
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 0x4012b3
lea eax, [ebp - 0x234]
push eax
call fcn.004021fe
mov esi, eax
pop ecx
cmp esi, 1
mov dword [0x404ed0], esi
jge 0x401098
push 3
jmp 0x4012b3
cmp dword [ebp + 8], 1
jle 0x4010fd
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 4]
cmp byte [edx], 0x2d
jne 0x4010fd
cmp esi, edi
mov dword [ebp - 0x1c], edi
jle 0x4010fd
mov dword [ebp - 0x18], 0x404edc
mov eax, dword [ebp - 0x18]
mov edi, edx
mov ecx, dword [eax]
mov bl, byte [edi]
mov al, bl
cmp bl, byte [ecx]
jne 0x4010e0
test al, al
je 0x4010dc
mov bl, byte [edi + 1]
mov al, bl
cmp bl, byte [ecx + 1]
jne 0x4010e0
inc edi
inc edi
inc ecx
inc ecx
test al, al
jne 0x4010be
xor eax, eax
jmp 0x4010e5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401156
inc dword [ebp - 0x1c]
add dword [ebp - 0x18], 4
cmp dword [ebp - 0x1c], esi
jl 0x4010b7
mov ebx, dword [sym.imp.MSVCRT.dll_printf]
xor edi, edi
test esi, esi
jle 0x401139
mov esi, 0x404edc
mov eax, dword [esi]
lea ecx, [ebp - 0x130]
inc eax
push 0x104
push ecx
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004024d6
add esp, 0x10
test al, al
jne 0x4011b0
inc edi
add esi, 4
cmp edi, dword [0x404ed0]
jl 0x401106
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 0x4012b3
and byte [ebp - 0x130], 0
lea eax, [ebp - 0x130]
push 0x104
lea esi, [edx + 1]
push eax
lea eax, [ebp - 0x234]
push esi
push eax
mov byte [ebp - 5], 1
call fcn.004024d6
add esp, 0x10
test al, al
jne 0x4011aa
lea eax, [ebp - 0x130]
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 0x4012b3
mov ebx, dword [sym.imp.MSVCRT.dll_printf]
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
lea eax, [ebp - 0x130]
push eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call fcn.00402508
pop ecx
test al, al
pop ecx
jne 0x4011df
mov dword [0x404f10], 1
push 6
jmp 0x4012b3
add dword [ebp + 0xc], 4
dec dword [ebp + 8]
cmp byte [ebp - 5], 0
mov dword [0x404f04], 0x404118
je 0x4011fd
add dword [ebp + 0xc], 4
dec dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00401daa
pop ecx
pop ecx
call fcn.00401e59
test al, al
jne 0x40121a
push 1
pop eax
jmp 0x401248
push 0x404120
call dword [sym.imp.MSVCRT.dll_getenv]
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.004015f9
add esp, 0x18
test al, al
jne 0x401257
mov eax, dword [ebp - 0x14]
mov dword [0x404f10], 2
jmp 0x401514
cmp dword [ebp - 0xc], edi
je 0x401265
push dword [ebp - 0xc]
call fcn.00401519
pop ecx
cmp byte [0x404f0e], 0
je 0x401279
call fcn.004027ed
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.004019fe
add esp, 0xc
test al, al
jne 0x4012b9
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 [0x404f10], 3
pop ecx
push 1
pop eax
jmp 0x401514
cmp byte [0x404f0c], 0
jne 0x4012cb
cmp byte [0x404f0d], 0
je 0x401314
push dword [ebp - 4]
call fcn.00402012
mov eax, dword [ebp - 4]
pop ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
jne 0x4014d4
cmp byte [0x404f0c], al
je 0x4012f5
mov dword [ebp - 0x14], edi
jmp 0x401508
cmp byte [0x404f0d], 0
je 0x401314
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push 0x40415c
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
pop ecx
pop ecx
cmp dword [ebp - 0xc], edi
jne 0x401328
cmp dword [ebp - 0x10], edi
jne 0x401328
call fcn.00402052
jmp 0x401508
call fcn.004023df
cmp byte [0x404f0e], 0
je 0x40139b
call fcn.004027ed
sub eax, dword [ebp - 0x20]
sbb edx, dword [ebp - 0x1c]
push edx
push eax
call fcn.00402833
push eax
push str._ld_micro_seconds_to_InitializeJVM_n
call ebx
add esp, 0x10
cmp byte [0x404f0e], 0
je 0x40139b
mov eax, dword [ebp - 0x10]
xor esi, esi
cmp eax, edi
jne 0x40136a
mov eax, 0x404f18
push eax
push str.Main_Class_is__s_n
call ebx
push dword [ebp + 8]
push str.Apps_argc_is__d_n
call ebx
add esp, 0x10
cmp dword [ebp + 8], edi
jle 0x40139b
mov eax, dword [ebp + 0xc]
push dword [eax + esi*4]
push esi
push str.____argv__2d____s_n
call ebx
add esp, 0xc
inc esi
cmp esi, dword [ebp + 8]
jl 0x401384
cmp dword [ebp - 0xc], edi
mov dword [ebp - 0x14], 1
je 0x401423
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00401c95
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 0x4014d4
test edi, edi
jne 0x4013ea
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 dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
jmp 0x401508
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 0x4014d4
push eax
push dword [ebp - 4]
call fcn.00401bfb
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 0x401432
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.00401bfb
pop ecx
mov esi, eax
pop ecx
mov eax, dword [ebp - 4]
test esi, esi
mov ecx, dword [eax]
jne 0x40144e
push eax
call dword [ecx + 0x40]
mov dword [0x404f10], 4
jmp 0x401508
push str.__Ljava_lang_String__V
push str.main
push esi
push eax
call dword [ecx + 0x1c4]
mov edi, eax
test edi, edi
jne 0x4014a0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
je 0x40147e
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x401494
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str.No_main_method_found_in_specified_class._n
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
pop ecx
pop ecx
mov dword [0x404f10], 5
jmp 0x401508
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00401ae3
add esp, 0xc
test eax, eax
je 0x4014d4
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 0x4014df
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x401508
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
je 0x401504
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str.Could_not_detach_main_thread._n
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
pop ecx
pop ecx
jmp 0x401508
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]
pop edi
pop esi
pop ebx
leave
ret