Function at 0x51fe70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65b063
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x458
push esi
push edi
xor esi, esi
push 0x206
mov edi, ecx
lea ecx, [ebp - 0x462]
xor eax, eax
push esi
push ecx
mov dword [ebp - 0x20], esi
mov word [ebp - 0x464], ax
call fcn.006100a0
add esp, 0xc
push str.Select_folder
lea ecx, [ebp - 0x18]
call fcn.0040bea0
mov dword [ebp - 4], esi
push esi
push 0x7e1
call fcn.00403bf0
add esp, 8
cmp eax, esi
je 0x51fee5
push 0x7e1
push eax
lea ecx, [ebp - 0x18]
call fcn.00405a10
push 0x66fae0
lea ecx, [ebp - 0x10]
call fcn.0040bea0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x464]
push edx
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, esi
jl 0x51ff34
lea eax, [ebp - 0x464]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x51ff15
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x464]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401670
push 0x66eba8
lea ecx, [ebp - 0x14]
call fcn.0040bea0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], 1
jle 0x51ff5d
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401370
mov eax, dword [ebp - 0x14]
mov esi, eax
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x51ff77
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.00401370
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 0x18]
push ecx
push esi
push eax
push edx
mov ecx, edi
call fcn.00500900
test eax, eax
je 0x5200b3
mov edx, dword [ebp - 0x10]
test edx, edx
jne 0x51ff9b
xor eax, eax
jmp 0x51ffb5
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x51ffa0
sub eax, esi
sar eax, 1
js 0x520134
cmp eax, dword [edx - 8]
jg 0x520134
mov dword [edx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
lea eax, [ebp - 0x10]
lea ecx, [edi + 0x1fa0]
push eax
call fcn.004078d0
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 4
push 0
push 0x7de
call fcn.00403bf0
add esp, 8
test eax, eax
je 0x520017
push 0x7de
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405a10
mov esi, dword [ebp - 0x1c]
mov ecx, dword [0x714024]
mov edx, dword [edi + 4]
push 1
push esi
push ecx
push 0x51d880
push edx
lea ecx, [ebp - 0x25c]
call fcn.005976e0
mov byte [ebp - 4], 5
mov eax, dword [0x716738]
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x254], eax
lodsb al, byte [esi]
std
invalid
inc edi
test dword [eax - 0x69000003], esi
add dword [eax], eax
add bh, al
test dword [ebp + edi*8 + 0x4faffff], esi
add byte [eax], al
mov dword [ebp - 0x248], 0x4f9
mov dword [ebp - 0x244], 2
mov dword [ebp - 0x240], 1
call fcn.005977f0
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x25c]
call fcn.00597310
mov byte [ebp - 4], 2
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5200b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop esi
test edx, edx
jg 0x5200d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5200fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x520121
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.004011d0
int3