Function at 0x10004c40
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1040
call fcn.1003baf0
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x103c], eax
push ebx
push ebp
push esi
push edi
push 0x1000
lea eax, [esp + 0x50]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x18], 0
lea eax, [esp + 0x4c]
push 0x800
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x7fe
ja 0x10004e77
mov ebx, dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x1c], 0
call ebx
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10004cc9
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call esi
push 0xc
call fcn.10031690
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
add esp, 4
cmp dword [esp + 0x14], 0
mov esi, eax
je 0x10004e92
test esi, esi
je 0x10004d0b
lea eax, [esp + 0x4c]
mov dword [esi + 4], 0
push eax
mov dword [esi + 8], 1
call edi
mov dword [esi], eax
test eax, eax
je 0x10004fe4
jmp 0x10004d0d
xor esi, esi
mov dword [esp + 0x14], esi
test esi, esi
je 0x10004fe4
push 0xc
call fcn.10031690
mov esi, eax
add esp, 4
test esi, esi
je 0x10004d4a
push str._system32javaws.exe
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call edi
mov dword [esi], eax
test eax, eax
je 0x10004fe4
jmp 0x10004d4c
xor esi, esi
mov dword [esp + 0x10], esi
test esi, esi
je 0x10004fe4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.10003700
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jne 0x10004daa
mov eax, dword [esi]
test eax, eax
je 0x10004d88
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10004d9f
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10031690
add esp, 8
push str.Wow64DisableWow64FsRedirection
push str.kernel32
call ebx
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push eax
call esi
push str.Wow64RevertWow64FsRedirection
push str.kernel32
mov dword [esp + 0x18], eax
call ebx
push eax
call esi
mov esi, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10004e3a
test ebx, ebx
je 0x10004e3a
lea ecx, [esp + 0x18]
push ecx
call eax
test eax, eax
je 0x10004e3a
test esi, esi
je 0x10004df7
mov eax, dword [esi]
jmp 0x10004df9
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64i32]
add esp, 8
push dword [esp + 0x18]
test eax, eax
jne 0x10004e38
call ebx
test esi, esi
je 0x10004fb4
lock xadd dword [esi + 8], edi
dec edi
jne 0x10004fb4
mov eax, dword [esi]
test eax, eax
je 0x10004f92
push eax
call ebp
jmp 0x10004f8c
call ebx
test esi, esi
je 0x10004e77
lock xadd dword [esi + 8], edi
dec edi
jne 0x10004e77
mov eax, dword [esi]
test eax, eax
je 0x10004e55
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10004e6c
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10031690
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x104c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003b4ee
add esp, 0x1040
ret
test esi, esi
je 0x10004eb7
lea eax, [esp + 0x4c]
mov dword [esi + 4], 0
push eax
mov dword [esi + 8], 1
call edi
mov dword [esi], eax
test eax, eax
je 0x10004fe4
jmp 0x10004eb9
xor esi, esi
mov dword [esp + 0x14], esi
test esi, esi
je 0x10004fe4
push 0xc
call fcn.10031690
mov esi, eax
add esp, 4
test esi, esi
je 0x10004ef6
push str._sysWow64javaws.exe
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call edi
mov dword [esi], eax
test eax, eax
je 0x10004fe4
jmp 0x10004ef8
xor esi, esi
mov dword [esp + 0x10], esi
test esi, esi
je 0x10004fe4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.10003700
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jne 0x10004f56
mov eax, dword [esi]
test eax, eax
je 0x10004f34
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10004f4b
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10031690
add esp, 8
mov esi, dword [esp + 0x14]
test esi, esi
je 0x10004f62
mov eax, dword [esi]
jmp 0x10004f64
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64i32]
add esp, 8
test eax, eax
jne 0x10004fbe
test esi, esi
je 0x10004fb4
lock xadd dword [esi + 8], edi
dec edi
jne 0x10004fb4
mov eax, dword [esi]
test eax, eax
je 0x10004f92
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10004fa9
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10031690
add esp, 8
mov eax, 1
jmp 0x10004e79
test esi, esi
je 0x10004e77
lock xadd dword [esi + 8], edi
dec edi
jne 0x10004e77
mov eax, dword [esi]
test eax, eax
je 0x10004e55
push eax
call ebx
jmp 0x10004e4f
push 0x8007000e
call fcn.10031690
int3