Function at 0x46afd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66efd1
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x703034]
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, edx
mov esi, ecx
mov dword [ebp - 0x164], esi
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x168], 0
je 0x46b037
push 0xffffffffffffffff
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push edi
mov byte [esi], 0
call fcn.004296dd
jmp 0x46b322
push 0x105
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00638f20
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x46b08b
push 0xffffffffffffffff
push 0
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push edi
mov byte [esi], 0
call fcn.004296dd
jmp 0x46b322
cmp byte [ebp - 0x118], 0
mov dword [ebp - 0x14c], 0xf
mov dword [ebp - 0x150], 0
mov byte [ebp - 0x160], 0
jne 0x46b0b3
xor eax, eax
jmp 0x46b0c2
lea eax, [ebp - 0x118]
push eax
call fcn.0063c700
add esp, 4
push eax
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x160]
call fcn.004292fd
push 0x6c39c0
lea eax, [ebp - 0x160]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.004238ab
add esp, 0xc
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14c]
cmp eax, 0x10
jb 0x46b14b
mov ecx, dword [ebp - 0x160]
inc eax
cmp eax, 0x1000
jb 0x46b142
test cl, 0x1f
je 0x46b11e
call fcn.0063c6a1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x46b12a
call fcn.0063c6a1
sub ecx, eax
cmp ecx, 4
jae 0x46b136
call fcn.0063c6a1
cmp ecx, 0x23
jbe 0x46b140
call fcn.0063c6a1
mov ecx, eax
push ecx
call fcn.00476f40
add esp, 4
push str._beacon
lea eax, [ebp - 0x148]
mov dword [ebp - 0x14c], 0xf
push eax
lea eax, [ebp - 0x130]
mov dword [ebp - 0x150], 0
push eax
mov byte [ebp - 0x160], 0
call fcn.0045c9f8
add esp, 0xc
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 3
call fcn.0046af80
test al, al
je 0x46b27d
lea ecx, [ebp - 0x130]
call fcn.0046af80
test al, al
je 0x46b27d
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0x10
jae 0x46b1eb
mov eax, dword [ebp - 0x120]
add eax, 1
je 0x46b1fd
push eax
lea eax, [ebp - 0x130]
push eax
push esi
call fcn.006389a0
mov ecx, dword [ebp - 0x11c]
add esp, 0xc
jmp 0x46b1fd
mov eax, dword [ebp - 0x130]
mov dword [esi], eax
mov dword [ebp - 0x130], 0
mov eax, dword [ebp - 0x120]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x134]
mov dword [esi + 0x14], ecx
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
cmp eax, 0x10
jb 0x46b322
mov ecx, dword [ebp - 0x148]
inc eax
cmp eax, 0x1000
jb 0x46b26f
test cl, 0x1f
je 0x46b24b
call fcn.0063c6a1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x46b257
call fcn.0063c6a1
sub ecx, eax
cmp ecx, 4
jae 0x46b263
call fcn.0063c6a1
cmp ecx, 0x23
jbe 0x46b26d
call fcn.0063c6a1
mov ecx, eax
push ecx
call fcn.00476f40
add esp, 4
jmp 0x46b322
push 0xffffffffffffffff
push 0
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push edi
mov byte [esi], 0
call fcn.004296dd
mov eax, dword [ebp - 0x11c]
cmp eax, 0x10
jb 0x46b2ea
mov ecx, dword [ebp - 0x130]
inc eax
cmp eax, 0x1000
jb 0x46b2e1
test cl, 0x1f
je 0x46b2bd
call fcn.0063c6a1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x46b2c9
call fcn.0063c6a1
sub ecx, eax
cmp ecx, 4
jae 0x46b2d5
call fcn.0063c6a1
cmp ecx, 0x23
jbe 0x46b2df
call fcn.0063c6a1
mov ecx, eax
push ecx
call fcn.00476f40
add esp, 4
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
cmp eax, 0x10
jb 0x46b322
push 1
inc eax
push eax
push dword [ebp - 0x148]
call fcn.004295bb
add esp, 0xc
mov eax, esi
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.00620181
mov esp, ebp
pop ebp
ret