Function at 0x43b7b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b8c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
push esi
push edi
push eax
xor eax, eax
pop eax
je 0x43b7d9
invalid
mov al, byte [0x4bd5a4]
mov ecx, 0xff
mov byte [ebp - 0x420], al
xor eax, eax
lea edi, [ebp - 0x41f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x420]
push eax
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x420]
push 0x17
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x43b872
mov edi, 0x4bd5a4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [ebp + 8]
push 1
not ecx
dec ecx
mov ebx, ecx
mov ecx, edi
push ebx
call fcn.00401850
test al, al
je 0x43ba0c
mov edi, dword [edi + 4]
mov ecx, ebx
mov edx, ecx
mov esi, 0x4bd5a4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
call fcn.004099d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edi, [ebp - 0x420]
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [ebp + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [ebp - 0x10], esi
call fcn.00401850
test al, al
je 0x43b8be
mov edi, dword [ebx + 4]
mov ecx, esi
mov eax, ecx
lea esi, [ebp - 0x420]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [ebx + 4]
add eax, ecx
mov dword [ebx + 8], ecx
mov byte [eax], 0
mov edi, 0x4bd5a4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [ebx + 8]
push 0x4bd5a4
push ecx
push eax
mov ecx, ebx
call fcn.00414a80
test eax, eax
je 0x43ba0c
mov ecx, ebx
call fcn.004096e0
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x43b8f9
xor eax, eax
jmp 0x43b8fe
mov eax, dword [ebx + 8]
add eax, ecx
cmp byte [eax - 1], 0x5c
jne 0x43ba0c
mov eax, dword [ebx + 8]
lea edx, [ebp - 0x20]
dec eax
mov ecx, ebx
push eax
push 0
push edx
call fcn.0043c590
mov esi, eax
mov eax, dword [esi + 8]
mov ecx, dword [0x491cd4]
mov edi, eax
mov dword [ebp - 4], 0
cmp ecx, edi
mov dword [ebp + 8], edi
jae 0x43b93a
mov dword [ebp + 8], ecx
mov edi, ecx
cmp ebx, esi
jne 0x43b957
push ecx
push edi
mov ecx, ebx
call fcn.004098b0
push 0
push 0
mov ecx, ebx
call fcn.004098b0
jmp 0x43b9d7
test edi, edi
jbe 0x43b99f
cmp edi, eax
jne 0x43b99f
mov eax, dword [esi + 4]
test eax, eax
jne 0x43b96b
mov eax, 0x48d810
cmp byte [eax - 1], 0xfe
jae 0x43b99f
push 1
mov ecx, ebx
call fcn.004017b0
mov eax, dword [esi + 4]
test eax, eax
jne 0x43b986
mov eax, 0x48d810
mov dword [ebx + 4], eax
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov edx, dword [esi + 0xc]
mov dword [ebx + 0xc], edx
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x43b9d7
push 1
push edi
mov ecx, ebx
call fcn.00401850
test al, al
je 0x43b9d7
mov esi, dword [esi + 4]
test esi, esi
jne 0x43b9b9
mov esi, 0x48d810
mov ecx, edi
mov edi, dword [ebx + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, ebx
call fcn.004099d0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43ba0c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x43ba03
cmp al, 0xff
je 0x43ba03
dec al
mov byte [ecx], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ecx
call fcn.00485078
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4