Function at 0x4e4710
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559292
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
push ebx
push esi
push edi
mov eax, dword [0x6fb4c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0x6e8124
mov bl, byte [ebp + 0xc]
or edi, 0xffffffff
mov dword [ebp - 4], 0
test bl, bl
jne 0x4e47f6
lea eax, [ebp - 0x10]
push eax
call fcn.00458ef0
add esp, 4
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004597e0
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.0045aa20
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406090
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x4e47b1
cmp eax, edi
je 0x4e47c0
mov eax, dword [ebp + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e47c0
push 4
push 2
push dword [ebp + 0xc]
call fcn.00403690
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00459b00
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4e47e7
cmp eax, 0xffffffff
je 0x4e47f6
mov eax, dword [ebp - 0x10]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e47f6
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403690
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 0x4e485b
cmp esi, dword [ebp - 0x238]
lea ecx, [ebp - 0x238]
mov edx, esi
cmovl edx, dword [ebp - 0x238]
push edx
push esi
call fcn.00454f80
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.00408df0
add esp, 0xc
mov ecx, dword [eax]
mov dword [eax], 0x6e80cc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 4
mov eax, dword [eax]
test eax, eax
je 0x4e489f
cmp eax, 0xffffffff
je 0x4e48ae
mov eax, dword [ebp + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e48ae
push 4
push 2
push dword [ebp + 0xc]
call fcn.00403690
add esp, 0xc
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x228]
cmp eax, ecx
je 0x4e48c7
push eax
call fcn.0052a217
add esp, 4
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x14]
call fcn.00406090
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0
mov ecx, dword [eax]
mov eax, dword [ebp - 0x10]
test ecx, ecx
je 0x4e48fa
cmp ecx, 0xffffffff
je 0x4e4907
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne cl
test cl, cl
jne 0x4e4907
push 4
push 2
push eax
call fcn.00403690
add esp, 0xc
test bl, bl
jne 0x4e4a2a
lea eax, [ebp - 0x1c]
push str.PATH
push eax
call fcn.004261b0
add esp, 8
mov eax, dword [eax]
mov byte [ebp - 4], 7
mov edx, dword [eax + 0xc]
add edx, eax
je 0x4e493d
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e4932
sub ecx, esi
jmp 0x4e493f
xor ecx, ecx
push ecx
push edx
call fcn.00408c30
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 0x4e496f
cmp eax, 0xffffffff
je 0x4e497e
mov eax, dword [ebp - 0x1c]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e497e
push 4
push 1
push dword [ebp - 0x1c]
call fcn.00403690
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.0040c230
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.004e45c0
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 0xb
mov eax, dword [eax]
test eax, eax
je 0x4e49d0
cmp eax, 0xffffffff
je 0x4e49f8
mov eax, dword [ebp + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e49f8
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.0040e830
add esp, 4
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x4e4a1b
cmp eax, 0xffffffff
je 0x4e4a2a
mov eax, dword [ebp - 0x10]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e4a2a
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403690
add esp, 0xc
push 0xffffffffffffffff
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00408df0
add esp, 0xc
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov dword [eax], 0x6e80cc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x4e4a6c
cmp eax, 0xffffffff
je 0x4e4a7b
mov eax, dword [ebp + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e4a7b
push 4
push 2
push dword [ebp + 0xc]
call fcn.00403690
add esp, 0xc
push str..dll
push 4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xd
call fcn.00406480
mov eax, dword [ebp - 0x14]
xor esi, esi
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
test ecx, ecx
jle 0x4e4b51
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 0x4e4ac1
cmp eax, 0xffffffff
je 0x4e4ac1
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.00408320
test al, al
jne 0x4e4ae7
push ecx
mov eax, esp
lea ecx, [ebp + 0xc]
mov word [eax], bx
call fcn.00406410
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0xc]
call fcn.004061e0
lea ecx, [ebp + 0xc]
call fcn.0040d690
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 0x4e4be1
test eax, eax
je 0x4e4b2b
cmp eax, 0xffffffff
je 0x4e4b3a
mov eax, dword [ebp + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e4b3a
push 4
push 2
push dword [ebp + 0xc]
call fcn.00403690
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 0x4e4aa4
xor ebx, ebx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
je 0x4e4b72
cmp eax, 0xffffffff
je 0x4e4b81
mov eax, dword [ebp - 0x20]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e4b81
push 4
push 2
push dword [ebp - 0x20]
call fcn.00403690
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xf
mov eax, dword [eax]
test eax, eax
je 0x4e4ba5
cmp eax, 0xffffffff
je 0x4e4bcd
mov ecx, dword [ebp - 0x14]
lock xadd dword [ecx], edi
dec edi
setne cl
test cl, cl
jne 0x4e4bcd
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.0040e830
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 0x4e4c03
cmp eax, 0xffffffff
je 0x4e4b53
mov eax, dword [ebp + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e4b53
push 4
push 2
push dword [ebp + 0xc]
call fcn.00403690
add esp, 0xc
jmp 0x4e4b53