Function at 0x402d20
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3bc
push ebx
push esi
push edi
push str.PPLLoader
push 0x40a100
call dword [0x407034]
mov eax, dword [ebp + 8]
push eax
call fcn.004031f0
add esp, 4
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00403270
add esp, 8
test eax, eax
jne 0x402d86
push str._Loader__InitInstance_
push 0x40a1c8
call sub.MFC42.DLL_CString::Format
add esp, 8
mov ecx, 0x40a1c8
call fcn.00401410
push eax
call dword [0x407040]
xor eax, eax
jmp 0x4031e4
push 0
call dword [0x407220]
push 0x4076c4
call dword [0x407030]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x402dac
mov eax, 1
jmp 0x4031e4
push str.URLDownloadToFileA
mov eax, dword [ebp - 0x24]
push eax
call dword [0x40702c]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x402dd8
mov ecx, dword [ebp - 0x24]
push ecx
call dword [0x407050]
mov eax, 1
jmp 0x4031e4
push str.kernel32.dll
call dword [0x407030]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x402e00
mov edx, dword [ebp - 0x24]
push edx
call dword [0x407050]
mov eax, 1
jmp 0x4031e4
push 0x407690
mov eax, dword [ebp - 0x2c]
push eax
call dword [0x40702c]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x402e36
mov ecx, dword [ebp - 0x24]
push ecx
call dword [0x407050]
mov edx, dword [ebp - 0x2c]
push edx
call dword [0x407050]
mov eax, 1
jmp 0x4031e4
call dword [sym.imp.MSVCRT.dll___p___argc]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
call dword [sym.imp.MSVCRT.dll___p___argv]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], 0
lea edx, [ebp - 0x378]
push edx
lea ecx, [ebp - 0x4c]
call dword [0x4070cc]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x50], 2
jmp 0x402e7c
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [ebp - 0x34]
jge 0x402ec6
push str._version
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + edx*4]
push ecx
call dword [0x407198]
add esp, 8
test eax, eax
jne 0x402ec4
mov edx, dword [ebp - 0x50]
add edx, 1
cmp edx, dword [ebp - 0x34]
jge 0x402ec4
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + eax*4 + 4]
push edx
call dword [sym.imp.MSVCRT.dll__strdup]
add esp, 4
mov dword [ebp - 0x3c], eax
jmp 0x402ec6
jmp 0x402e73
mov dword [ebp - 0x54], str.http:__download.pplive.com_sogou2.exe
mov dword [ebp - 0x58], str.http:__download.pplive.com_pinyin2.exe
mov eax, dword [ebp + 0x10]
push eax
push str._Loader_
push 0x40a1c8
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, 0x40a1c8
call fcn.00401410
push eax
call dword [0x407040]
push 0x104
lea ecx, [ebp - 0x15c]
push ecx
push str.Product
mov edx, dword [ebp + 0x10]
push edx
call fcn.00401080
add esp, 0x10
test eax, eax
je 0x402f2d
lea eax, [ebp - 0x15c]
push eax
mov ecx, 0x40a0fc
call sub.MFC42.DLL_CString::operator_2
push 0x104
lea ecx, [ebp - 0x15c]
push ecx
push str.Custom
mov edx, dword [ebp + 0x10]
push edx
call fcn.00401080
add esp, 0x10
test eax, eax
je 0x402f5f
lea eax, [ebp - 0x15c]
push eax
mov ecx, 0x40a0f8
call sub.MFC42.DLL_CString::operator_2
push 0x104
lea ecx, [ebp - 0x15c]
push ecx
push str.Channel
mov edx, dword [ebp + 0x10]
push edx
call fcn.00401080
add esp, 0x10
test eax, eax
je 0x402f91
lea eax, [ebp - 0x15c]
push eax
mov ecx, 0x40a0f4
call sub.MFC42.DLL_CString::operator_2
push 0x104
lea ecx, [ebp - 0x15c]
push ecx
push str.SoftID
mov edx, dword [ebp + 0x10]
push edx
call fcn.00401080
add esp, 0x10
test eax, eax
je 0x402fc3
lea eax, [ebp - 0x15c]
push eax
mov ecx, 0x40a0f0
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [0x40a0f0]
push ecx
mov edx, dword [0x40a0f4]
push edx
mov eax, dword [0x40a0f8]
push eax
mov ecx, dword [0x40a0fc]
push ecx
push str._Loader__Product:_s_Custom:_s_Channel:_s_SoftID:_s
push 0x40a1c8
call sub.MFC42.DLL_CString::Format
add esp, 0x18
mov ecx, 0x40a1c8
call fcn.00401410
push eax
call dword [0x407040]
mov byte [ebp - 0x260], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x25f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x364], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x363]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x368], 0
mov dword [ebp - 0x36c], 0
push 7
push str.http:__
mov edx, dword [ebp - 0x54]
push edx
call dword [0x407130]
add esp, 0xc
test eax, eax
jne 0x4030ec
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.00401a00
add esp, 8
test eax, eax
je 0x4030ec
mov dword [ebp - 0x370], 0
lea edx, [ebp - 0x260]
push edx
push 0x40a404
call dword [0x407034]
push 0
push 0
push 0
mov eax, dword [0x40a508]
push eax
push 0
push 0x40a404
mov ecx, dword [ebp - 0x54]
push ecx
mov ecx, 0x40a270
call fcn.00403c50
test eax, eax
je 0x4030c5
mov dword [ebp - 0x368], 1
mov edx, dword [ebp - 0x54]
push edx
push str._Loader__StartDownload_pszUrl1:_s
push 0x40a1c8
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, 0x40a1c8
call fcn.00401410
push eax
call dword [0x407040]
cmp dword [ebp - 0x368], 0
je 0x403102
push 0x40a404
call fcn.00402bf0
add esp, 4
cmp dword [ebp - 0x368], 0
je 0x403110
call fcn.004029d0
push 7
push str.http:__
mov eax, dword [ebp - 0x58]
push eax
call dword [0x407130]
add esp, 0xc
test eax, eax
jne 0x4031b6
lea ecx, [ebp - 0x364]
push ecx
mov edx, dword [ebp - 0x58]
push edx
call fcn.00401a00
add esp, 8
test eax, eax
je 0x4031b6
mov dword [ebp - 0x374], 0
lea eax, [ebp - 0x364]
push eax
push 0x40a300
call dword [0x407034]
push 0
push 0
push 0
mov ecx, dword [0x40a508]
push ecx
push 0
push 0x40a300
mov edx, dword [ebp - 0x58]
push edx
mov ecx, 0x40a1e0
call fcn.00403c50
test eax, eax
je 0x40318f
mov dword [ebp - 0x36c], 1
mov eax, dword [ebp - 0x58]
push eax
push str._Loader__StartDownload_pszUrl2:_s
push 0x40a1c8
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, 0x40a1c8
call fcn.00401410
push eax
call dword [0x407040]
cmp dword [ebp - 0x36c], 0
je 0x4031cc
push 0x40a300
call fcn.00402bf0
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x37c], ecx
lea ecx, [ebp - 0x4c]
call dword [0x4070c8]
mov eax, dword [ebp - 0x37c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10