Function at 0x4e4920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559402
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
push ebx
push esi
push edi
mov eax, dword [0x6f9540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0x6e61b8
mov bl, byte [ebp + 0xc]
or edi, 0xffffffff
mov dword [ebp - 4], 0
test bl, bl
jne 0x4e4a06
lea eax, [ebp - 0x10]
push eax
call fcn.00459130
add esp, 4
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00459a20
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.0045ac60
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406720
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x4e49c1
cmp eax, edi
je 0x4e49d0
mov eax, dword [ebp + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e49d0
push 4
push 2
push dword [ebp + 0xc]
call fcn.00403d20
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00459d40
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4e49f7
cmp eax, 0xffffffff
je 0x4e4a06
mov eax, dword [ebp - 0x10]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e4a06
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403d20
add esp, 0xc
lea eax, [ebp - 0x228]
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x238], 0x104
push 0x104
push eax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
cmp esi, 0x104
jbe 0x4e4a6b
cmp esi, dword [ebp - 0x238]
lea ecx, [ebp - 0x238]
mov edx, esi
cmovl edx, dword [ebp - 0x238]
push edx
push esi
call fcn.004551c0
push esi
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
push esi
push dword [ebp - 0x230]
lea eax, [ebp + 0xc]
push eax
call fcn.00409480
add esp, 0xc
mov ecx, dword [eax]
mov dword [eax], 0x6e6190
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 4
mov eax, dword [eax]
test eax, eax
je 0x4e4aaf
cmp eax, 0xffffffff
je 0x4e4abe
mov eax, dword [ebp + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e4abe
push 4
push 2
push dword [ebp + 0xc]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x228]
cmp eax, ecx
je 0x4e4ad7
push eax
call fcn.0052a437
add esp, 4
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x14]
call fcn.00406720
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0
mov ecx, dword [eax]
mov eax, dword [ebp - 0x10]
test ecx, ecx
je 0x4e4b0a
cmp ecx, 0xffffffff
je 0x4e4b17
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne cl
test cl, cl
jne 0x4e4b17
push 4
push 2
push eax
call fcn.00403d20
add esp, 0xc
test bl, bl
jne 0x4e4c3a
lea eax, [ebp - 0x1c]
push str.PATH
push eax
call fcn.00426190
add esp, 8
mov eax, dword [eax]
mov byte [ebp - 4], 7
mov edx, dword [eax + 0xc]
add edx, eax
je 0x4e4b4d
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e4b42
sub ecx, esi
jmp 0x4e4b4f
xor ecx, ecx
push ecx
push edx
call fcn.004092c0
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 9
mov eax, dword [eax]
test eax, eax
je 0x4e4b7f
cmp eax, 0xffffffff
je 0x4e4b8e
mov eax, dword [ebp - 0x1c]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e4b8e
push 4
push 1
push dword [ebp - 0x1c]
call fcn.00403d20
add esp, 0xc
push 1
push ecx
mov eax, esp
push ecx
mov ecx, 0x3b
mov dword [eax], 1
mov eax, esp
mov word [eax], cx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040c8c0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.004e47d0
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 0xb
mov eax, dword [eax]
test eax, eax
je 0x4e4be0
cmp eax, 0xffffffff
je 0x4e4c08
mov eax, dword [ebp + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e4c08
mov esi, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
mov eax, dword [esi + 0xc]
add eax, 4
lea eax, [esi + eax*4]
push eax
mov eax, dword [esi + 8]
add eax, 4
lea eax, [esi + eax*4]
push eax
call fcn.004028a0
push esi
call fcn.0040eed0
add esp, 4
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x4e4c2b
cmp eax, 0xffffffff
je 0x4e4c3a
mov eax, dword [ebp - 0x10]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e4c3a
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403d20
add esp, 0xc
push 0xffffffffffffffff
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00409480
add esp, 0xc
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov dword [eax], 0x6e6190
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x4e4c7c
cmp eax, 0xffffffff
je 0x4e4c8b
mov eax, dword [ebp + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e4c8b
push 4
push 2
push dword [ebp + 0xc]
call fcn.00403d20
add esp, 0xc
push str..dll
push 4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xd
call fcn.00406b10
mov eax, dword [ebp - 0x14]
xor esi, esi
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
test ecx, ecx
jle 0x4e4d61
lea ebx, [esi + 0x5c]
mov ecx, dword [eax + 8]
add ecx, esi
mov eax, dword [eax + ecx*4 + 0x10]
mov dword [ebp + 0xc], eax
mov eax, dword [eax]
test eax, eax
je 0x4e4cd1
cmp eax, 0xffffffff
je 0x4e4cd1
mov eax, dword [ebp + 0xc]
lock inc dword [eax]
push 1
push ecx
mov eax, esp
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 0xc]
mov word [eax], bx
call fcn.004089b0
test al, al
jne 0x4e4cf7
push ecx
mov eax, esp
lea ecx, [ebp + 0xc]
mov word [eax], bx
call fcn.00406aa0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0xc]
call fcn.00406870
lea ecx, [ebp + 0xc]
call fcn.0040dd20
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test ebx, ebx
jne 0x4e4df1
test eax, eax
je 0x4e4d3b
cmp eax, 0xffffffff
je 0x4e4d4a
mov eax, dword [ebp + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e4d4a
push 4
push 2
push dword [ebp + 0xc]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x14]
inc esi
mov ebx, 0x5c
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
cmp esi, ecx
jl 0x4e4cb4
xor ebx, ebx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
je 0x4e4d82
cmp eax, 0xffffffff
je 0x4e4d91
mov eax, dword [ebp - 0x20]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e4d91
push 4
push 2
push dword [ebp - 0x20]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xf
mov eax, dword [eax]
test eax, eax
je 0x4e4db5
cmp eax, 0xffffffff
je 0x4e4ddd
mov ecx, dword [ebp - 0x14]
lock xadd dword [ecx], edi
dec edi
setne cl
test cl, cl
jne 0x4e4ddd
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov eax, dword [esi + 0xc]
add eax, 4
lea eax, [esi + eax*4]
push eax
mov eax, dword [esi + 8]
add eax, 4
lea eax, [esi + eax*4]
push eax
call fcn.004028a0
push esi
call fcn.0040eed0
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x4e4e13
cmp eax, 0xffffffff
je 0x4e4d63
mov eax, dword [ebp + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e4d63
push 4
push 2
push dword [ebp + 0xc]
call fcn.00403d20
add esp, 0xc
jmp 0x4e4d63