Function at 0x475e20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2830
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x58005c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
mov dword [0x591980], 0
mov dword [0x591990], 0
mov dword [0x591994], 0
mov byte [ebp - 4], 0
xor eax, eax
mov dword [0x591990], 0
mov dword [0x591994], 7
mov word [0x591980], ax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x4b98a0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x476016
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
test edx, edx
je 0x47602b
mov esi, edx
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x475ed0
sub esi, ecx
mov ecx, dword [0x591994]
sar esi, 1
mov dword [ebp - 0x1c], ecx
cmp esi, ecx
ja 0x475f19
cmp ecx, 8
mov dword [0x591990], esi
mov edi, 0x591980
cmovae edi, dword [0x591980]
add esi, esi
push esi
push edx
push edi
call fcn.00481c60
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x476016
cmp esi, 0x7ffffffe
ja 0x4761c0
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x475f3e
mov ebx, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x475f78
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x475f59
mov ebx, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x475f78
lea eax, [ecx + edx]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
cmp eax, 0x7fffffff
ja 0x4761bb
add eax, eax
cmp eax, 0x1000
jb 0x475f9f
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4761bb
push ecx
call fcn.0047f873
add esp, 4
test eax, eax
je 0x4761c5
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x475fb2
test eax, eax
je 0x475fb0
push eax
call fcn.0047f873
add esp, 4
mov edi, eax
jmp 0x475fb2
xor edi, edi
mov dword [0x591990], esi
add esi, esi
push esi
push dword [ebp - 0x18]
mov dword [0x591994], ebx
push edi
call fcn.00481c60
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp - 0x1c]
cmp eax, 8
jb 0x476010
mov ecx, dword [0x591980]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x476006
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4761c5
push edx
push ecx
call fcn.0047faf4
add esp, 8
mov dword [0x591980], edi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x47602b
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x14], 0
mov ebx, dword [0x591990]
test ebx, ebx
je 0x476182
mov ecx, 0x591980
call fcn.00477230
movzx eax, word [eax]
cmp eax, 0x5c
je 0x476182
cmp eax, 0x2f
je 0x476182
mov esi, dword [0x591994]
mov dword [ebp - 0x1c], esi
cmp ebx, esi
jae 0x476085
lea eax, [ebx + 1]
cmp esi, 8
mov dword [0x591990], eax
mov eax, ecx
cmovae eax, dword [0x591980]
mov dword [eax + ebx*2], 0x5c
jmp 0x476182
mov ecx, 0x7ffffffe
mov eax, ecx
sub eax, ebx
cmp eax, 1
jb 0x4761c0
lea edi, [ebx + 1]
or edi, 7
cmp edi, ecx
jbe 0x4760aa
mov edi, ecx
mov eax, 0xfffffffe
jmp 0x4760de
mov eax, esi
shr eax, 1
sub ecx, eax
cmp esi, ecx
jbe 0x4760c0
mov edi, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x4760de
add eax, esi
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4761bb
add eax, eax
cmp eax, 0x1000
jb 0x476105
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4761bb
push ecx
call fcn.0047f873
add esp, 4
test eax, eax
je 0x4761c5
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x476118
test eax, eax
je 0x476116
push eax
call fcn.0047f873
add esp, 4
mov esi, eax
jmp 0x476118
xor esi, esi
lea eax, [ebx + 1]
mov dword [0x591994], edi
lea edi, [ebx + ebx]
mov dword [0x591990], eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edi
cmp ebx, 8
jb 0x4761a3
push dword [ebp - 0x18]
mov edi, dword [0x591980]
push edi
push esi
call fcn.00481c60
mov eax, dword [ebp - 0x18]
lea ebx, [ebx*2 + 2]
add esp, 0xc
mov dword [eax + esi], 0x5c
cmp ebx, 0x1000
jb 0x476172
mov ecx, dword [edi - 4]
add ebx, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x4761c5
mov edi, ecx
push ebx
push edi
call fcn.0047faf4
add esp, 8
mov dword [0x591980], esi
mov eax, 0x591980
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047f860
mov esp, ebp
pop ebp
ret
push edi
push 0x591980
push esi
call fcn.00481c60
add esp, 0xc
mov dword [edi + esi], 0x5c
jmp 0x47617c
call fcn.00401589
call fcn.0040160f
call fcn.00488b21
int3