Function at 0x5075b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x5075c0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x50787c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xff
call fcn.004027ac
mov dword [ebp - 4], eax
mov dl, 1
mov eax, dword [0x41a4b8]
call fcn.00403414
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x440eac]
call fcn.00440fac
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x507845
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 4]
call fcn.00404470
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 8]
mov ecx, 0x507894
call fcn.00404584
xor eax, eax
push ebp
push 0x507815
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x68]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x14]
call fcn.004089c4
lea ecx, [ebp - 0x38]
mov edx, 0x5078ac
mov eax, dword [ebp - 0x14]
call fcn.004ac054
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x10]
call fcn.004089c4
mov eax, dword [ebp - 0x10]
call fcn.0040bf78
fstp qword [ebp - 0x20]
wait
mov edx, 0x80000001
mov eax, dword [ebp - 0x24]
call fcn.0044104c
lea eax, [ebp - 0x28]
mov edx, 0x5078e4
call fcn.00404310
mov cl, 1
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.004410b4
test al, al
je 0x507803
lea ecx, [ebp - 0x2c]
mov edx, 0x507904
mov eax, dword [ebp - 0x24]
call fcn.00441630
mov edx, dword [ebp - 0x2c]
mov eax, 0x507918
call fcn.0040487c
test eax, eax
jle 0x507738
call fcn.0040aac4
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.004c3f98
cmp eax, 0x16d
jl 0x507803
push 0x30
mov ecx, 0x50791c
mov edx, 0x50792c
mov eax, dword [0x53ab08]
mov eax, dword [eax]
call fcn.00490bac
mov eax, dword [0x53ab08]
mov eax, dword [eax]
call fcn.00490b08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00403cbc
jmp 0x50784c
mov edx, dword [ebp - 0x2c]
mov eax, 0x507944
call fcn.0040487c
test eax, eax
jle 0x5077a1
call fcn.0040aac4
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.004c3f98
cmp eax, 0x2da
jl 0x507803
push 0x30
mov ecx, 0x50791c
mov edx, 0x50792c
mov eax, dword [0x53ab08]
mov eax, dword [eax]
call fcn.00490bac
mov eax, dword [0x53ab08]
mov eax, dword [eax]
call fcn.00490b08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00403cbc
jmp 0x50784c
mov edx, dword [ebp - 0x2c]
mov eax, 0x507950
call fcn.0040487c
test eax, eax
jle 0x507803
call fcn.0040aac4
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.004c3f98
cmp eax, 0x447
jl 0x507803
push 0x30
mov ecx, 0x50791c
mov edx, 0x50792c
mov eax, dword [0x53ab08]
mov eax, dword [eax]
call fcn.00490bac
mov eax, dword [0x53ab08]
mov eax, dword [eax]
call fcn.00490b08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00403cbc
jmp 0x50784c
mov eax, dword [ebp - 0x24]
call fcn.0044101c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50781f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50784c
mov eax, dword [ebp - 0x24]
call fcn.00403444
mov eax, dword [ebp - 4]
call fcn.004027cc
mov eax, dword [ebp - 0xc]
call fcn.00403444
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507883
lea eax, [ebp - 0x38]
mov edx, 5
call fcn.0040429c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040429c
lea eax, [ebp - 8]
call fcn.00404278
ret