Function at 0x570b84
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x414], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 0xd], cl
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x570ed3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x30], 0
je 0x570c0c
cmp byte [0x65b353], 0
jne 0x570c1c
mov byte [0x65b353], 1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
cmp word [eax + 0x3ba], 0
je 0x570c1c
mov esi, eax
movzx edx, byte [0x65b353]
mov eax, dword [esi + 0x3bc]
call dword [esi + 0x3b8]
jmp 0x570c1c
cmp byte [0x65b351], 0
jne 0x570c1c
mov byte [0x65b351], 1
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405bdc
lea eax, [ebp - 4]
call fcn.004059ac
mov edx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov ecx, ebx
call fcn.0056e8c4
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x10], 0
je 0x570c5a
mov ecx, 0x766
mov edx, 0x570eec
mov eax, 0x570f28
call fcn.004053bc
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
jne 0x570ca9
mov eax, dword [0x5bf974]
mov eax, dword [eax]
mov eax, dword [eax + 0x64]
cmp byte [eax + 0x3b4], 0
jne 0x570ca9
lea eax, [ebp - 0x40e]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x414]
lea eax, [ebp - 0x40e]
call fcn.0040ba84
mov edx, dword [ebp - 0x414]
mov eax, dword [ebp - 0xc]
add eax, 8
call fcn.004054e4
mov eax, dword [0x5bf974]
mov eax, dword [eax]
mov eax, dword [eax + 0x64]
cmp byte [eax + 0x3b4], 0
je 0x570cdf
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x1c], 0
je 0x570cdf
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
jne 0x570cdf
mov eax, dword [ebp - 0xc]
add eax, 8
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x1c]
call fcn.004054e4
lea eax, [ebp - 0x418]
mov ecx, dword [ebp - 4]
mov edx, 0x570f44
call fcn.004057a0
mov edx, dword [ebp - 0x418]
mov eax, dword [0x5bff58]
mov eax, dword [eax]
mov cl, 1
call fcn.004a1964
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
call fcn.00410438
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004057a0
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 4]
cmp dword [ebx + 0x3b0], 0
je 0x570d6c
cmp dword [ebx + 0x3ac], 0
je 0x570d6c
lea ecx, [ebp - 0x41c]
lea eax, [ebx + 0x3ac]
mov edx, 0x570f58
call fcn.005a1618
mov ecx, dword [ebp - 0x41c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x3b0]
lea eax, [ebp - 4]
call fcn.004057a0
jmp 0x570d89
cmp dword [ebx + 0x3ac], 0
je 0x570d89
lea eax, [ebp - 4]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 4]
mov edx, dword [edx + 0x3ac]
call fcn.00405528
mov eax, dword [ebp - 0xc]
add eax, 0x14
mov edx, dword [ebp - 4]
call fcn.004054e4
xor eax, eax
push ebp
push 0x570e59
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 0xd], 0
je 0x570dc6
lea edx, [ebp - 0x420]
mov eax, dword [ebp - 4]
call fcn.005a3b50
mov eax, dword [ebp - 0x420]
call fcn.005a3bfc
jmp 0x570e0f
lea eax, [ebp - 0x424]
mov ecx, dword [ebp - 4]
mov edx, 0x570f64
call fcn.004057a0
mov edx, dword [ebp - 0x424]
mov eax, dword [0x5bff58]
mov eax, dword [eax]
mov cl, 1
call fcn.004a1964
mov eax, dword [ebp - 4]
call fcn.005a3ce4
push 0xffff
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x41bd8c]
call fcn.00421c20
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
cmp byte [ebp + 8], 0
je 0x570e33
mov eax, dword [ebp - 0xc]
push dword [eax + 0xc]
push dword [ebp - 4]
push 0x570f58
mov eax, dword [ebp - 0xc]
add eax, 0xc
mov edx, 3
call fcn.00405814
cmp byte [ebp - 0xd], 0
je 0x570e41
mov eax, dword [ebp - 0xc]
call fcn.00571238
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 4]
call fcn.0056eef0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x570ea8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x570eda
lea eax, [ebp - 0x424]
mov edx, 5
call fcn.004054b4
lea eax, [ebp - 8]
mov edx, 2
call fcn.004054b4
ret