Function at 0x53a470
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x53a478
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x53a71b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xff
call fcn.00402730
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [0x417bc0]
call fcn.0040337c
mov dword [ebp - 0x10], eax
mov ecx, 0xf013f
mov dl, 1
mov eax, dword [0x4a71f4]
call fcn.004a73c8
mov dword [ebp - 0x24], eax
xor edx, edx
push ebp
push 0x53a6e4
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xff
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 8]
call fcn.004043d8
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
mov ecx, 0x53a734
call fcn.004044ec
xor edx, edx
push ebp
push 0x53a6b4
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x68]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x18]
call fcn.0040888c
lea ecx, [ebp - 0x3c]
mov edx, 0x53a74c
mov eax, dword [ebp - 0x18]
call fcn.004c51ac
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x14]
call fcn.0040888c
xor edx, edx
push ebp
push 0x53a5c9
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x40]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404700
mov eax, dword [ebp - 0x40]
call fcn.00408ebc
mov ebx, eax
lea eax, [ebp - 0x44]
push eax
mov ecx, 2
mov edx, 5
mov eax, dword [ebp - 0x14]
call fcn.00404700
mov eax, dword [ebp - 0x44]
call fcn.00408ebc
mov esi, eax
lea eax, [ebp - 0x48]
push eax
mov ecx, 2
mov edx, 7
mov eax, dword [ebp - 0x14]
call fcn.00404700
mov eax, dword [ebp - 0x48]
call fcn.00408ebc
mov ecx, eax
mov edx, esi
mov eax, ebx
call fcn.0040ac20
fstp qword [ebp - 0x20]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53a5d3
mov edx, 0x80000002
mov eax, dword [ebp - 0x24]
call fcn.004a7478
lea eax, [ebp - 0x28]
mov edx, 0x53a778
call fcn.00404278
push 1
mov cl, 1
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.004a74e0
test al, al
je 0x53a6a2
lea ecx, [ebp - 0x2c]
mov edx, 0x53a7a0
mov eax, dword [ebp - 0x24]
call fcn.004a7cb8
mov eax, dword [ebp - 0x2c]
call fcn.0053cd90
mov ebx, eax
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.00408678
mov al, byte [0x53a7ac]
push eax
lea eax, [ebp - 0x4c]
push eax
xor ecx, ecx
mov edx, 0x53a7b8
mov eax, dword [ebp - 0x30]
call fcn.0040e1b0
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x30]
call fcn.00404278
call fcn.0040ae54
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x50]
mov eax, 0x53a7c4
call fcn.0040bafc
mov eax, dword [ebp - 0x50]
call fcn.00408ebc
cmp ebx, eax
jg 0x53a6a2
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.0053b0c0
test al, al
jne 0x53a6a2
mov eax, dword [0x559800]
mov eax, dword [eax]
call fcn.00491284
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00403c24
jmp 0x53a6eb
mov eax, dword [ebp - 0x24]
call fcn.004a7448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53a6be
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53a6eb
mov eax, dword [ebp - 0x24]
call fcn.004033ac
mov eax, dword [ebp - 0x10]
call fcn.004033ac
mov eax, dword [ebp - 8]
call fcn.00402750
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53a722
lea eax, [ebp - 0x50]
mov edx, 0xb
call fcn.00404204
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404204
lea eax, [ebp - 0xc]
call fcn.004041e0
ret