Function at 0x4123d3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push 8
call fcn.00462d60
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
add ebx, 4
push ebx
push 0x107
call fcn.00462d60
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x4d875d
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0xff
rep stosb byte es:[edi], al
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0x63
jne 0x41243b
cmp dword [ebp + 8], 1
jne 0x412451
mov dword [ebp - 4], 0x22
jmp 0x412457
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 8]
push eax
push 0x103
call fcn.00462d60
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0xff
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push dword [ebp - 4]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4124b9
push 6
call fcn.00462d6c
add esp, 4
push eax
mov ebx, dword [ebp - 0x14]
push ebx
mov edi, dword [ebp - 0x18]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.00463360
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x4124fa
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x4124f8
imul eax, dword [edi]
jmp 0x4124ed
mov ecx, eax
cmp ecx, 0xff
jle 0x412507
mov ecx, 0xff
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0xff
call fcn.00462d66
add esp, 4
pop eax
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.00463800
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x412554
push ebx
call fcn.00462d66
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
push dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x412585
push 6
call fcn.00462d6c
add esp, 4
push 0x486b77
push dword [ebp - 0xc]
call fcn.0040191b
add esp, 8
cmp eax, 0
jne 0x4125a8
mov eax, 0x486b77
jmp 0x412666
cmp dword [ebp + 8], 1
jne 0x412621
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
mov ebx, 6
call fcn.0040ec8b
push OleUIBusyA
push 0
push 0x4d8750
push OleUIBusyA
push 0
push 0x4d8755
push OleUIBusyA
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4125f3
mov eax, 0x486b77
push eax
push 6
mov ebx, 0x180
call fcn.00464ac0
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41261d
push ebx
call fcn.00462d66
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041269a
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x412641
push ebx
call fcn.00462d66
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x412661
push eax
mov ebx, eax
call fcn.004019b8
inc eax
push eax
call fcn.00462d60
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x412666
push eax
mov ebx, dword [ebp - 8]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.00462d66
add esp, 4
pop ebx
call fcn.00462d66
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x412693
push ebx
call fcn.00462d66
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8