Function at 0x410880
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x414
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [esp + 0x418]
test eax, eax
jne 0x410915
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00473d50
add esp, 0xc
push 0x104
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x212]
push edx
mov word [esp + 0x214], cx
call fcn.00473d50
add esp, 0xc
push str.p2spd.dll
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x208]
push edx
jmp 0x410916
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4e53b0], eax
test eax, eax
je 0x410bfb
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.P2SPSetTaskStatusChangedCallback
push eax
call esi
mov dword [0x4e5350], eax
mov eax, dword [0x4e53b0]
push str.P2SPInit
push eax
call esi
mov ecx, dword [0x4e53b0]
push str.P2SPClose
push ecx
mov dword [0x4e5354], eax
call esi
mov edx, dword [0x4e53b0]
push str.P2SPRun
push edx
mov dword [0x4e5358], eax
call esi
mov dword [0x4e535c], eax
mov eax, dword [0x4e53b0]
push str.P2SPStop
push eax
call esi
mov ecx, dword [0x4e53b0]
push str.P2SPSetProxy
push ecx
mov dword [0x4e5360], eax
call esi
mov edx, dword [0x4e53b0]
push str.P2SPTestProxy
push edx
mov dword [0x4e5364], eax
call esi
mov dword [0x4e5368], eax
mov eax, dword [0x4e53b0]
push str.P2SPNewTask
push eax
call esi
mov ecx, dword [0x4e53b0]
push str.P2SPRunTask
push ecx
mov dword [0x4e536c], eax
call esi
mov edx, dword [0x4e53b0]
push str.P2SPRunTaskEx
push edx
mov dword [0x4e5370], eax
call esi
mov dword [0x4e5374], eax
mov eax, dword [0x4e53b0]
push str.P2SPStopTask
push eax
call esi
mov ecx, dword [0x4e53b0]
push str.P2SPDelTask
push ecx
mov dword [0x4e5378], eax
call esi
mov edx, dword [0x4e53b0]
push str.P2SPCheckTask
push edx
mov dword [0x4e537c], eax
call esi
mov dword [0x4e5380], eax
mov eax, dword [0x4e53b0]
push str.P2SPCheckTaskEx
push eax
call esi
mov ecx, dword [0x4e53b0]
push str.P2SPGetAllTaskSpeed
push ecx
mov dword [0x4e5384], eax
call esi
mov edx, dword [0x4e53b0]
push str.P2SPIsExistTask
push edx
mov dword [0x4e5388], eax
call esi
mov dword [0x4e538c], eax
mov eax, dword [0x4e53b0]
push str.P2SPGetTaskFileName
push eax
call esi
mov ecx, dword [0x4e53b0]
push str.P2SPGetTaskStatus
push ecx
mov dword [0x4e5390], eax
call esi
mov edx, dword [0x4e53b0]
push str.P2SPGetTaskSpeed
push edx
mov dword [0x4e5394], eax
call esi
mov dword [0x4e5398], eax
mov eax, dword [0x4e53b0]
push str.P2SPGetTaskFileSize
push eax
call esi
mov ecx, dword [0x4e53b0]
push str.P2SPGetTaskDownloadedSize
push ecx
mov dword [0x4e539c], eax
call esi
mov edx, dword [0x4e53b0]
push str.P2SPGetDtlUrlToUrl
push edx
mov dword [0x4e53a0], eax
call esi
mov dword [0x4e53a4], eax
mov eax, dword [0x4e53b0]
push str.P2SPWininetDown
push eax
call esi
mov ecx, dword [0x4e53b0]
push str.P2SP_XL_LimitSpeed
push ecx
mov dword [0x4e53a8], eax
call esi
cmp dword [0x4e5350], 0
mov dword [0x4e53ac], eax
pop esi
je 0x410bfb
cmp dword [0x4e5354], 0
je 0x410bfb
cmp dword [0x4e5358], 0
je 0x410bfb
cmp dword [0x4e535c], 0
je 0x410bfb
cmp dword [0x4e5360], 0
je 0x410bfb
cmp dword [0x4e5364], 0
je 0x410bfb
cmp dword [0x4e5368], 0
je 0x410bfb
cmp dword [0x4e536c], 0
je 0x410bfb
cmp dword [0x4e5370], 0
je 0x410bfb
cmp dword [0x4e5374], 0
je 0x410bfb
cmp dword [0x4e5378], 0
je 0x410bfb
cmp dword [0x4e537c], 0
je 0x410bfb
cmp dword [0x4e5380], 0
je 0x410bfb
cmp dword [0x4e5384], 0
je 0x410bfb
cmp dword [0x4e5388], 0
je 0x410bfb
cmp dword [0x4e538c], 0
je 0x410bfb
cmp dword [0x4e5390], 0
je 0x410bfb
cmp dword [0x4e5394], 0
je 0x410bfb
cmp dword [0x4e5398], 0
je 0x410bfb
cmp dword [0x4e539c], 0
je 0x410bfb
cmp dword [0x4e53a0], 0
je 0x410bfb
test eax, eax
je 0x410bfb
cmp dword [0x4e53a4], 0
je 0x410bfb
mov eax, 1
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00470f4c
add esp, 0x414
ret
mov ecx, dword [esp + 0x410]
xor ecx, esp
xor eax, eax
call fcn.00470f4c
add esp, 0x414
ret