Function at 0x475fb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543aab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3bc
push ebx
push esi
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [ebp - 0xb4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xb4]
mov dword [ebp - 0x10], esp
push eax
mov dword [ebp - 0xb4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
call fcn.00476380
mov edx, dword [ebp - 0xa4]
mov ecx, dword [ebp + 8]
xor eax, eax
cmp edx, 2
sete al
cmp eax, ebx
mov dword [0x5b0d00], ecx
mov dword [0x5b0d04], ebx
mov dword [0x5b0cfc], eax
je 0x476276
cmp dword [ebp - 0xb0], 4
jae 0x47604b
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x1bc]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.DriversAloPar.sys
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1bc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x1bc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00475d60
xor ebx, ebx
add esp, 4
cmp eax, ebx
jle 0x476365
lea ecx, [ebp - 0x3c8]
call fcn.00475570
push 1
lea ecx, [ebp - 0x1bc]
push str.AloPar
push ecx
lea ecx, [ebp - 0x3c8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.00475a60
mov esi, eax
cmp esi, ebx
jg 0x4760f4
lea ecx, [ebp - 0x3c8]
call fcn.004755a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push str..AloPar
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x5b0cf8], eax
jne 0x47613a
lea ecx, [ebp - 0x3c8]
mov dword [0x5b0cf8], ebx
call fcn.004755a0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 1
xor edi, edi
cmp edi, 4
jge 0x476203
mov si, word [edi*2 + 0x5b0ac0]
cmp si, bx
je 0x4761e7
push ebx
push esi
call fcn.00475b60
add esp, 8
push ebx
push 0x20
push 2
push esi
call fcn.00475b00
add esp, 0x10
and esi, 0xffff
push 0x55
push esi
call fcn.00475c90
push esi
call fcn.00475d00
add esp, 0xc
cmp eax, 0x55
je 0x476199
mov word [edi*2 + 0x5b0ac0], bx
inc edi
jmp 0x476140
push ebx
push esi
call fcn.00475c90
push esi
call fcn.00475d00
add esp, 0xc
test eax, eax
je 0x4761b8
mov word [edi*2 + 0x5b0ac0], bx
inc edi
jmp 0x476140
cmp dword [ebp + 8], ebx
jne 0x4761e0
add esi, 0x402
push 0x34
push esi
call fcn.00475c90
push esi
call fcn.00475d00
add esp, 0xc
cmp eax, 0x35
jne 0x4761e7
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 1
inc edi
jmp 0x476140
cmp dword [ebp - 0x14], ebx
je 0x476233
lea ecx, [ebp - 0x3c8]
mov dword [0x5b0d04], 1
call fcn.004755a0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x3c8]
cmp eax, ebx
jne 0x47625b
call fcn.004755a0
mov eax, 0xfffffb50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004755a0
mov eax, 0xfffffc0e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
push str.Toolhelp32ReadProcessMemory
mov dword [0x5b0ac0], edx
push str.KERNEL32.DLL
mov dword [ebp - 0x14], 1
mov dword [0x5b0ac4], edx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x4762bf
mov eax, 0xfffffc04
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1c]
push ecx
push 8
push 0x5b0ac0
push 0x408
push ebx
call eax
mov edi, 0x5b0ac0
test ebx, ebx
je 0x4762e2
mov word [edi], 0
jmp 0x476327
mov ax, word [edi]
test ax, ax
jne 0x4762f1
mov ebx, 1
jmp 0x476327
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x476320
and eax, 0xffff
push 0x34
lea esi, [eax + 0x402]
push esi
call fcn.00475c90
push esi
call fcn.00475d00
add esp, 0xc
cmp eax, 0x35
jne 0x476327
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
add edi, 2
cmp edi, 0x5b0ac8
jl 0x4762d7
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x476354
mov eax, 1
mov dword [0x5b0d04], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
neg eax
sbb eax, eax
and eax, 0xb3
add eax, 0xfffffb50
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret