Function at 0x40940b
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2724
call fcn.0041f290
mov eax, dword [0x448504]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.kernel32
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.SetDllDirectoryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x2720], ebx
jne 0x409455
push str._JNILaunch__WARNING:_SetDllDirectoryA_could_not_be_found
call fcn.0040a137
pop ecx
lea eax, [ebp - 0x2718]
push esi
push eax
mov byte [ebp - 0x2718], 0
call fcn.00419050
push 0x43fca0
lea esi, [ebp - 0x2718]
call fcn.0040a031
mov eax, esi
add esp, 0xc
push eax
call fcn.0040107c
mov esi, eax
test esi, esi
pop ecx
jne 0x4094d3
lea eax, [ebp - 0x2718]
push eax
push str._Extractor___SEVERE__Unable_to_open_directory___s__n
call fcn.0040a137
pop ecx
pop ecx
jmp 0x4094e3
mov edi, dword [eax]
push edi
push str.msvcp
call fcn.0040a673
test al, al
pop ecx
pop ecx
jne 0x4094c4
push edi
push str.vcruntime
call fcn.0040a673
test al, al
pop ecx
pop ecx
je 0x4094d3
lea eax, [ebp - 0x2718]
push eax
mov ecx, edi
call fcn.00409363
pop ecx
mov eax, esi
call fcn.004011a6
test eax, eax
jne 0x4094a0
call fcn.00401167
lea eax, [ebp - 0x2718]
push eax
push str._JNILaunch__Bin_folder_is__s_n
call fcn.0040a137
mov esi, 0x7d0
push esi
call fcn.00418e27
add esp, 0xc
push eax
push esi
mov dword [ebp - 0x2724], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x2718]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test ebx, ebx
je 0x40952a
lea eax, [ebp - 0x2718]
push eax
call ebx
mov edi, str.jvm.dll
push edi
mov ebx, str.server
push ebx
lea eax, [ebp - 0x1390]
mov byte [ebp - 0x1390], 0
call fcn.0040a0b0
pop ecx
pop ecx
lea esi, [ebp - 0x1390]
call fcn.004099dc
test eax, eax
mov eax, esi
jne 0x409573
push edi
push str.client
call fcn.0040a0b0
pop ecx
pop ecx
call fcn.004099dc
test eax, eax
je 0x409580
mov eax, esi
push eax
push str._Utils__Located_DLL___s__n
call fcn.0040a137
pop ecx
pop ecx
push edi
lea eax, [ebp - 0x2718]
push ebx
push eax
lea eax, [ebp - 0x1390]
call fcn.0040a0ce
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
lea eax, [ebp - 0x1390]
push eax
call esi
test eax, eax
mov dword [ebp - 0x271c], eax
jne 0x4095ee
push str.LoadLibrary
mov ebx, str.Utils
push ebx
call fcn.004092ef
push edi
lea eax, [ebp - 0x2718]
push str.client
push eax
lea eax, [ebp - 0x1390]
call fcn.0040a0ce
add esp, 0x14
lea eax, [ebp - 0x1390]
push eax
call esi
test eax, eax
mov dword [ebp - 0x271c], eax
je 0x409603
lea eax, [ebp - 0x1390]
push eax
push str._Extractor__Successfully_loaded_DLL___s_._JVM_looks_good._n
call fcn.0040a137
pop ecx
pop ecx
jmp 0x40961b
push str.LoadLibrary
push ebx
call fcn.004092ef
push str._Extractor___SEVERE__Unable_to_load_existing_JVM_dll._n
call fcn.0040a137
add esp, 0xc
cmp dword [ebp - 0x2720], 0
je 0x40962c
push 0
call dword [ebp - 0x2720]
push dword [ebp - 0x2724]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x271c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418d3b
leave
ret