Function at 0x4721d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571fa2
mov eax, dword fs:[0]
push eax
sub esp, 0x660
mov eax, dword [0x608514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x634], edi
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x654], edi
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 7
mov dword [ebp - 0x650], eax
mov word [edi + 0x84], cx
mov dword [ebp - 4], ecx
lea eax, [edi + 0x24]
push 0x60
push ecx
push eax
mov byte [edi + 0x9c], 1
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x64c]
push esi
call fcn.0040d690
mov byte [ebp - 4], 1
cmp dword [ebp - 0x63c], 0
jne 0x4723cd
mov eax, dword [0x60e270]
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x634], 0x60e270
test eax, eax
je 0x4722a8
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 2
mov ecx, dword [0x6085e0]
test ecx, ecx
je 0x4722ce
cmp dword [0x6085e4], 8
mov eax, 0x6085d0
cmovae eax, dword [0x6085d0]
jmp 0x472395
push 0x20c
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x4723a2
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x630]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x630]
push 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x472374
test eax, eax
je 0x472374
add eax, eax
cmp eax, 0x412
jae 0x4724ba
xor ecx, ecx
mov word [ebp + eax - 0x630], cx
lea ecx, [ebp - 0x630]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472361
lea eax, [ebp - 0x630]
jmp 0x472391
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472380
lea eax, [ebp - 0x21c]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x64c]
call fcn.004047a0
mov byte [ebp - 4], 1
mov eax, dword [0x60e270]
test eax, eax
je 0x4723b6
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x63c], 0
mov dword [ebp - 0x634], 0
je 0x47247e
mov eax, dword [ebp - 0x650]
cmp dword [eax + 0x10], 0
je 0x47247e
push eax
lea edx, [ebp - 0x64c]
lea ecx, [ebp - 0x66c]
call fcn.00433480
add esp, 4
mov esi, eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x64c]
cmp eax, esi
je 0x472433
mov ecx, eax
call fcn.004046e0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x64c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x63c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x66c]
call fcn.004046e0
push 0xf
push str..CheckStat.data
lea ecx, [ebp - 0x64c]
call fcn.004107e0
lea eax, [ebp - 0x64c]
lea ecx, [edi + 0x84]
cmp ecx, eax
je 0x47247e
cmp dword [ebp - 0x638], 8
push dword [ebp - 0x63c]
cmovae eax, dword [ebp - 0x64c]
push eax
call fcn.004047a0
mov ecx, edi
call fcn.004725e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64c]
call fcn.004046e0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054bed3
mov esp, ebp
pop ebp
ret 0xc
call fcn.0054c731
int3