Function at 0x46b6d0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513209
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
push esi
push edi
mov eax, dword [0x57c074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
push ecx
push 1
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x1c], 0
call fcn.0046d950
mov dword [ebp - 4], 1
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0
call esi
lea ecx, [ebp - 0x3c]
inc eax
push ecx
push eax
call fcn.0046e0a0
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
sub ecx, eax
sar ecx, 1
push eax
push ecx
call esi
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x18], edx
cmp eax, ecx
jbe 0x46b7f2
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x3c]
test edx, edx
je 0x46b7dc
mov ecx, dword [ebp - 0x34]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x46b7bd
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b9bd
push ecx
push edx
call fcn.004d9b41
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
sub esp, 0x18
xor eax, eax
mov edi, esp
mov dword [ebp - 0x30], esp
lea esi, [edi + 0x10]
mov dword [esi], 0
push edx
mov dword [edi + 0x14], 7
mov dword [ebp - 0x24], esi
mov word [edi], ax
call fcn.004dfc45
mov ecx, dword [edi + 0x14]
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], ecx
cmp eax, ecx
ja 0x46b84c
cmp ecx, 8
jb 0x46b82f
mov edi, dword [edi]
mov dword [esi], eax
lea esi, [eax + eax]
push esi
push dword [ebp - 0x18]
push edi
call fcn.004db7c0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x46b942
cmp eax, 0x7ffffffe
ja 0x46b9c2
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x46b86b
mov esi, 0x7ffffffe
jmp 0x46b889
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x46b881
mov esi, 0x7ffffffe
jmp 0x46b889
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x46b89b
or ecx, 0xffffffff
jmp 0x46b8a3
cmp ecx, 0x1000
jb 0x46b8cc
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004d9b4f
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x46b9c7
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x46b8dd
test ecx, ecx
je 0x46b8db
push ecx
call fcn.004d9b4f
add esp, 4
jmp 0x46b8dd
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov dword [edi + 0x14], esi
mov dword [ebp - 0x14], eax
lea esi, [ecx + ecx]
push esi
push dword [ebp - 0x18]
mov dword [edx], ecx
push eax
call fcn.004db240
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add esp, 0xc
mov word [esi + eax], cx
mov ecx, dword [ebp - 0x28]
cmp ecx, 8
jb 0x46b940
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x46b933
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b9bd
mov eax, edx
push ecx
push eax
call fcn.004d9b41
mov eax, dword [ebp - 0x14]
add esp, 8
mov dword [edi], eax
mov byte [ebp - 4], 4
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x2c]
mov ecx, esi
call fcn.0046a810
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x3c]
test edx, edx
je 0x46b9a7
mov ecx, dword [ebp - 0x34]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x46b988
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b9cc
push ecx
push edx
call fcn.004d9b41
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004dfbf5
call fcn.004053e9
call fcn.004dfbf5
call fcn.004dfbf5
int3