Function at 0x402a60
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41292c
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x418084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov eax, 0x419d90
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402ab0
sub eax, edx
mov edi, eax
mov eax, 0x419d90
lea esi, [ebp - 0x130]
call fcn.00404ec0
push str._bin
mov eax, esi
push eax
lea ecx, [ebp - 0x14c]
push ecx
mov dword [ebp - 4], ebx
call fcn.00404720
push str._serverjvm.dll
lea edx, [ebp - 0x14c]
push edx
lea eax, [ebp - 0x184]
push eax
mov byte [ebp - 4], 1
call fcn.00404720
push str.clientjvm.dll
lea ecx, [ebp - 0x14c]
push ecx
lea edx, [ebp - 0x168]
push edx
mov byte [ebp - 4], 2
call fcn.00404720
add esp, 0x24
mov byte [ebp - 4], 3
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, 0x10
cmp byte [0x419ea0], bl
je 0x402b50
mov eax, dword [ebp - 0x184]
cmp dword [ebp - 0x170], edi
jae 0x402b48
lea eax, [ebp - 0x184]
push eax
call esi
cmp eax, 0xffffffff
jne 0x402b6c
mov eax, dword [ebp - 0x168]
cmp dword [ebp - 0x154], edi
jae 0x402b64
lea eax, [ebp - 0x168]
push eax
call esi
cmp eax, 0xffffffff
jne 0x402b75
lea eax, [ebp - 0x184]
push eax
jmp 0x402b7c
lea ecx, [ebp - 0x168]
push ecx
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [ebp - 0x130]
call fcn.004052e0
mov eax, dword [ebp - 0x14c]
cmp dword [ebp - 0x138], edi
jae 0x402ba0
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x130]
cmp dword [ebp - 0x11c], edi
jae 0x402bbb
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
mov dword [0x419ea4], eax
cmp eax, ebx
je 0x402bde
push str.JNI_CreateJavaVM
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x419ea8], eax
cmp dword [0x419ea8], ebx
jne 0x402cc5
mov eax, dword [ebp - 0x130]
cmp dword [ebp - 0x11c], edi
jae 0x402bfe
lea eax, [ebp - 0x130]
push eax
lea edx, [ebp - 0x114]
push str.Failed_to_load_JVM_DLL__s
push edx
call fcn.00405fa1
add esp, 0xc
push ebx
push str.Error_Launching_IntelliJ_Platform
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [ebp - 0x154], edi
jb 0x402c3e
mov ecx, dword [ebp - 0x168]
push ecx
call fcn.0040554a
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x158], ebx
mov byte [ebp - 0x168], bl
cmp dword [ebp - 0x170], edi
jb 0x402c6c
mov edx, dword [ebp - 0x184]
push edx
call fcn.0040554a
add esp, 4
mov dword [ebp - 0x170], esi
mov dword [ebp - 0x174], ebx
mov byte [ebp - 0x184], bl
cmp dword [ebp - 0x138], edi
jb 0x402c95
mov eax, dword [ebp - 0x14c]
push eax
call fcn.0040554a
add esp, 4
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
cmp dword [ebp - 0x11c], edi
jb 0x402cbe
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.0040554a
add esp, 4
xor al, al
jmp 0x402d5e
cmp dword [ebp - 0x154], edi
jb 0x402cdc
mov edx, dword [ebp - 0x168]
push edx
call fcn.0040554a
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x158], ebx
mov byte [ebp - 0x168], bl
cmp dword [ebp - 0x170], edi
jb 0x402d0a
mov eax, dword [ebp - 0x184]
push eax
call fcn.0040554a
add esp, 4
mov dword [ebp - 0x170], esi
mov dword [ebp - 0x174], ebx
mov byte [ebp - 0x184], bl
cmp dword [ebp - 0x138], edi
jb 0x402d33
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.0040554a
add esp, 4
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
cmp dword [ebp - 0x11c], edi
jb 0x402d5c
mov edx, dword [ebp - 0x130]
push edx
call fcn.0040554a
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040553b
mov esp, ebp
pop ebp
ret