Function at 0x520140
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65b0c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x868
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 - 0x18], esi
mov word [ebp - 0x464], ax
call fcn.006100a0
add esp, 0xc
push str.Select_folder
lea ecx, [ebp - 0x1c]
call fcn.0040bea0
mov dword [ebp - 4], esi
push esi
push 0x7e1
call fcn.00403bf0
add esp, 8
cmp eax, esi
je 0x5201b5
push 0x7e1
push eax
lea ecx, [ebp - 0x1c]
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 0x520204
lea eax, [ebp - 0x464]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x5201e5
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 0x52022d
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 0x520247
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 - 0x1c]
push ecx
push esi
push eax
push edx
mov ecx, edi
call fcn.00500900
test eax, eax
je 0x520432
mov edx, dword [ebp - 0x10]
test edx, edx
jne 0x52026b
xor eax, eax
jmp 0x520285
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x520270
sub eax, esi
sar eax, 1
js 0x520428
cmp eax, dword [edx - 8]
jg 0x520428
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 - 0x20], esi
mov byte [ebp - 4], 4
push 0
push 0x7de
call fcn.00403bf0
add esp, 8
test eax, eax
je 0x5202e7
push 0x7de
push eax
lea ecx, [ebp - 0x20]
call fcn.00405a10
mov esi, dword [ebp - 0x20]
mov ecx, dword [0x714024]
mov edx, dword [edi + 4]
push 1
push esi
push ecx
push 0x51f360
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
mov dword [ebp - 0x250], 0x196
mov dword [ebp - 0x24c], 0x4fa
mov dword [ebp - 0x248], 0x4f9
mov dword [ebp - 0x244], 2
mov dword [ebp - 0x240], 1
call fcn.005977f0
mov dword [ebp - 0x18], 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 0x520383
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x18], 0x10001
jne 0x520432
call fcn.005b0c70
test al, al
je 0x520432
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x226]
push edx
mov word [ebp - 0x228], cx
call fcn.006100a0
lea eax, [ebp - 0x228]
push 0x104
push eax
call fcn.005bd730
xor ecx, ecx
push 0x40e
push ecx
lea edx, [ebp - 0x872]
push edx
mov word [ebp - 0x874], cx
call fcn.006100a0
push 0x67758c
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x874]
push str._s_s
push ecx
call fcn.004035d0
mov eax, dword [edi + 4]
add esp, 0x30
push 5
push 0
push 0
lea edx, [ebp - 0x874]
push edx
push 0x66f294
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x80070057
call fcn.004011d0
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 0x520457
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 0x52047a
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 - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5204a0
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 - 0x18]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10