Function at 0x100066a0
Capabilities:
Create process on windows
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062b85
mov eax, dword fs:[0]
push eax
sub esp, 0xbcc
mov eax, dword [0x100850a0]
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 esi, dword [ebp + 0xc]
mov ebx, 0x80004001
mov edi, dword [ebp + 0x10]
call fcn.100300a0
test al, al
je 0x10006f3b
mov eax, dword [esi]
lea ecx, [ebp - 0xb1c]
push ecx
push 0
push edi
push esi
mov dword [ebp - 0xb1c], 0
call dword [eax + 0x50]
test eax, eax
jne 0x10006f3b
mov edi, dword [ebp - 0xb1c]
test edi, edi
je 0x1000675e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006717
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x1000675e
lea ebx, [ecx + ecx]
mov eax, ebx
call fcn.1003c720
mov esi, esp
test esi, esi
je 0x1000675e
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x10006760
xor esi, esi
lea eax, [ebp - 0xa64]
push esi
push eax
call fcn.100103a0
push 0x9c
lea eax, [ebp - 0xb18]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.100415b0
add esp, 0x14
lea ecx, [ebp - 0xb18]
push str.Download_Cookie_is__s
call fcn.1000c650
cmp dword [ebp - 0xa50], 0x10
lea eax, [ebp - 0xa64]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0xa64]
mov dword [ebp - 0xb3c], eax
lea eax, [ebp - 0xb3c]
mov dword [ebp - 0xb2c], eax
lea eax, [ebp - 0xb2c]
push eax
lea eax, [ebp - 0xb18]
mov dword [ebp - 0xb28], fcn.100092e0
push eax
mov dword [ebp - 0xb24], 0x100092f0
call fcn.10009a00
add esp, 8
lea eax, [ebp - 0xa48]
lea ecx, [ebp - 0xb18]
push eax
call fcn.10019bf0
cmp dword [eax + 0x14], 0x10
jb 0x10006808
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0xa34]
cmp eax, 0x10
jb 0x1000685f
mov ecx, dword [ebp - 0xa48]
inc eax
cmp eax, 0x1000
jb 0x10006856
test cl, 0x1f
je 0x10006832
call fcn.1004c866
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x1000683e
call fcn.1004c866
sub ecx, eax
cmp ecx, 4
jae 0x1000684a
call fcn.1004c866
cmp ecx, 0x23
jbe 0x10006854
call fcn.1004c866
mov ecx, eax
push ecx
call fcn.1003beb0
add esp, 4
push 0x800
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.100415b0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100415b0
add esp, 0x18
lea eax, [ebp - 0x218]
push 1
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1000694c
push str._sDownloader.exe
lea ecx, [ebp - 0xbd8]
call fcn.1000c7b0
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 2
mov dword [ebp - 0xb2c], ecx
lea ecx, [ebp - 0xb2c]
push ecx
push eax
mov dword [ebp - 0xb28], fcn.100092e0
mov dword [ebp - 0xb24], 0x10009310
call fcn.10009a70
push eax
lea eax, [ebp - 0xa48]
push eax
call fcn.1000bb80
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xbd8]
call fcn.1000e1b0
cmp dword [ebp - 0xa34], 8
lea eax, [ebp - 0xa48]
cmovae eax, dword [ebp - 0xa48]
push eax
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.1004cc95
mov eax, dword [ebp - 0xa34]
add esp, 0xc
cmp eax, 8
jb 0x10006965
inc eax
lea ecx, [ebp - 0xa48]
push eax
push dword [ebp - 0xa48]
call fcn.10014b00
jmp 0x10006965
push str.C:UserschenhaoDesktopDownloader.exe
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.1004cc95
add esp, 0xc
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.10036b70
xor eax, eax
mov dword [ebp - 0xa1c], 7
add esp, 8
mov dword [ebp - 0xa20], 0
mov word [ebp - 0xa30], ax
mov byte [ebp - 4], 3
cmp dword [ebp - 0xa54], eax
jne 0x100069fa
push 0x1006a8b0
lea ecx, [ebp - 0xbd8]
call fcn.1000c7b0
lea ecx, [ebp - 0xb1c]
mov byte [ebp - 4], 4
mov dword [ebp - 0xb2c], ecx
lea ecx, [ebp - 0xb2c]
push ecx
push eax
mov dword [ebp - 0xb28], fcn.100092e0
mov dword [ebp - 0xb24], 0x10009340
call fcn.10009a70
push eax
lea eax, [ebp - 0xa48]
push eax
call fcn.1000bb80
add esp, 0x10
mov esi, eax
jmp 0x10006ae6
cmp dword [ebp - 0xa50], 0x10
lea edi, [ebp - 0xa64]
cmovae edi, dword [ebp - 0xa64]
test edi, edi
jne 0x10006a1a
mov dword [ebp - 0xb3c], edi
jmp 0x10006a66
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006a20
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x10006a5e
lea eax, [ebx + ebx]
call fcn.1003c720
mov esi, esp
test esi, esi
je 0x10006a5e
push ebx
push esi
push 0xffffffffffffffff
xor eax, eax
push edi
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x10006a60
xor esi, esi
mov dword [ebp - 0xb3c], esi
push str._s__s
lea ecx, [ebp - 0xbd8]
call fcn.1000c7b0
lea ecx, [ebp - 0xb1c]
mov byte [ebp - 4], 6
mov dword [ebp - 0xb2c], ecx
lea ecx, [ebp - 0xb2c]
push ecx
push eax
mov dword [ebp - 0xb28], fcn.100092e0
mov dword [ebp - 0xb24], 0x10009340
call fcn.10009a70
lea ecx, [ebp - 0xb3c]
mov dword [ebp - 0xb28], fcn.100092e0
mov dword [ebp - 0xb2c], ecx
lea ecx, [ebp - 0xb2c]
push ecx
push eax
mov dword [ebp - 0xb24], 0x10009340
call fcn.10009a70
push eax
lea eax, [ebp - 0xa48]
push eax
call fcn.1000bb80
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0xa30]
cmp eax, esi
je 0x10006b33
mov eax, dword [ebp - 0xa1c]
cmp eax, 8
jb 0x10006b0e
inc eax
lea ecx, [ebp - 0xa30]
push eax
push dword [ebp - 0xa30]
call fcn.10014b00
xor eax, eax
mov dword [ebp - 0xa1c], 7
push esi
lea ecx, [ebp - 0xa30]
mov dword [ebp - 0xa20], eax
mov word [ebp - 0xa30], ax
call fcn.10011030
mov eax, dword [ebp - 0xa34]
cmp eax, 8
jb 0x10006b51
inc eax
lea ecx, [ebp - 0xa48]
push eax
push dword [ebp - 0xa48]
call fcn.10014b00
xor eax, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xbd8]
mov dword [ebp - 0xa34], 7
mov dword [ebp - 0xa38], eax
mov word [ebp - 0xa48], ax
call fcn.1000e1b0
cmp dword [ebp - 0xa1c], 8
lea edi, [ebp - 0xa30]
cmovae edi, dword [ebp - 0xa30]
test edi, edi
je 0x10006bdd
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006b96
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x10006bdd
lea ebx, [ecx + ecx]
mov eax, ebx
call fcn.1003c720
mov esi, esp
test esi, esi
je 0x10006bdd
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x10006bdf
xor esi, esi
mov dword [ebp - 0xb24], 0xf
mov dword [ebp - 0xb28], 0
mov byte [ebp - 0xb38], 0
cmp byte [esi], 0
jne 0x10006c03
xor ecx, ecx
jmp 0x10006c11
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006c08
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0xb38]
call fcn.10013d70
lea eax, [ebp - 0xb38]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0xa7c]
push eax
lea ecx, [ebp - 0xa49]
call fcn.10001fd0
mov eax, dword [ebp - 0xb24]
mov byte [ebp - 4], 0xa
cmp eax, 0x10
jb 0x10006c8f
mov ecx, dword [ebp - 0xb38]
inc eax
cmp eax, 0x1000
jb 0x10006c86
test cl, 0x1f
je 0x10006c62
call fcn.1004c866
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10006c6e
call fcn.1004c866
sub ecx, eax
cmp ecx, 4
jae 0x10006c7a
call fcn.1004c866
cmp ecx, 0x23
jbe 0x10006c84
call fcn.1004c866
mov ecx, eax
push ecx
call fcn.1003beb0
add esp, 4
cmp dword [ebp - 0xa68], 0x10
lea edi, [ebp - 0xa7c]
mov dword [ebp - 0xb24], 0xf
cmovae edi, dword [ebp - 0xa7c]
mov dword [ebp - 0xb28], 0
mov byte [ebp - 0xb38], 0
test edi, edi
je 0x10006d05
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006cc7
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x10006d05
lea eax, [ebx + ebx]
call fcn.1003c720
mov esi, esp
test esi, esi
je 0x10006d05
push ebx
push esi
push 0xffffffffffffffff
xor eax, eax
push edi
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x10006d07
xor esi, esi
push 1
push 0
push esi
lea eax, [ebp - 0xa18]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
mov dword [ebp - 0xb20], eax
cmp eax, 0x20
mov ebx, 0x80004001
push str.Download_notify:_DownloadPath_is__s__url_is__s__ShellExecute_HINSTANCE_is_0x_x
cmovg ebx, ecx
lea ecx, [ebp - 0xbd8]
call fcn.1000c7b0
lea ecx, [ebp - 0xa18]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0xb2c], ecx
lea ecx, [ebp - 0xb2c]
push ecx
push eax
mov dword [ebp - 0xb28], fcn.100092e0
mov dword [ebp - 0xb24], 0x10009310
call fcn.10009a70
lea ecx, [ebp - 0xb1c]
mov dword [ebp - 0xb28], fcn.100092e0
mov dword [ebp - 0xb2c], ecx
lea ecx, [ebp - 0xb2c]
push ecx
push eax
mov dword [ebp - 0xb24], 0x10009340
call fcn.10009a70
lea ecx, [ebp - 0xb20]
mov dword [ebp - 0xb28], fcn.100092e0
mov dword [ebp - 0xb2c], ecx
lea ecx, [ebp - 0xb2c]
push ecx
push eax
mov dword [ebp - 0xb24], 0x10009320
call fcn.10009a70
push eax
lea eax, [ebp - 0xa48]
push eax
call fcn.1000bb80
add esp, 0x20
mov esi, eax
lea eax, [ebp - 0xa30]
cmp eax, esi
je 0x10006e31
mov eax, dword [ebp - 0xa1c]
cmp eax, 8
jb 0x10006e08
inc eax
lea ecx, [ebp - 0xa30]
push eax
push dword [ebp - 0xa30]
call fcn.10014b00
xor eax, eax
mov dword [ebp - 0xa1c], 7
push esi
lea ecx, [ebp - 0xa30]
mov dword [ebp - 0xa20], 0
mov word [ebp - 0xa30], ax
call fcn.10011030
mov eax, dword [ebp - 0xa34]
cmp eax, 8
jb 0x10006e4f
inc eax
lea ecx, [ebp - 0xa48]
push eax
push dword [ebp - 0xa48]
call fcn.10014b00
xor eax, eax
mov dword [ebp - 0xa34], 7
lea ecx, [ebp - 0xbd8]
mov dword [ebp - 0xa38], 0
mov word [ebp - 0xa48], ax
call fcn.1000e1b0
cmp dword [ebp - 0xa1c], 8
lea eax, [ebp - 0xa30]
cmovae eax, dword [ebp - 0xa30]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0xb1c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0xa68]
cmp eax, 0x10
jb 0x10006ebc
inc eax
lea ecx, [ebp - 0xa7c]
push eax
push dword [ebp - 0xa7c]
call fcn.10014b60
mov eax, dword [ebp - 0xa1c]
mov dword [ebp - 0xa68], 0xf
mov dword [ebp - 0xa6c], 0
mov byte [ebp - 0xa7c], 0
cmp eax, 8
jb 0x10006ef5
inc eax
lea ecx, [ebp - 0xa30]
push eax
push dword [ebp - 0xa30]
call fcn.10014b00
xor eax, eax
mov dword [ebp - 0xa1c], 7
lea ecx, [ebp - 0xb18]
mov dword [ebp - 0xa20], 0
mov word [ebp - 0xa30], ax
call fcn.1000e090
mov ecx, dword [ebp - 0xa50]
cmp ecx, 0x10
jb 0x10006f3b
inc ecx
push ecx
push dword [ebp - 0xa64]
lea ecx, [ebp - 0xa64]
call fcn.10014b60
mov eax, ebx
lea esp, [ebp - 0xbe8]
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.1003beb5
mov esp, ebp
pop ebp
ret 0x24