Function at 0x4f8c10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544338
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x577018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x3c], edi
mov eax, dword [edi + 0x664]
push 0
push 0
push 0xf0
push dword [eax + 0xc]
mov dword [ebp - 0x20], edi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
je 0x4f8c83
call fcn.004ec6e0
mov ecx, dword [edi + 0x65c]
push eax
mov byte [edi + 0x328], al
mov byte [edi + 0x6a4], al
call fcn.004e45b0
mov eax, dword [edi + 0x65c]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [eax + 0xc]
mov byte [eax + 0x10], 0
call esi
mov eax, dword [edi + 0x660]
push 0
push dword [eax + 0xc]
mov byte [eax + 0x10], 0
call esi
push 0x5b8
mov dword [ebp - 4], 0
call fcn.00517390
mov esi, eax
add esp, 4
mov dword [ebp - 0x40], esi
push 0x5b8
push 0
push esi
mov byte [ebp - 4], 1
call fcn.00519680
sub esp, 0xc
lea eax, [edi + 0x450]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00408180
sub esp, 0x18
mov byte [ebp - 4], 2
lea eax, [edi + 0x438]
mov dword [ebp - 0x44], esp
mov ecx, esp
push eax
call fcn.00408180
sub esp, 0x3d0
mov byte [ebp - 4], 3
lea eax, [edi + 0x68]
mov ecx, esp
push eax
call fcn.004bd890
movzx eax, byte [edi + 0x694]
mov ecx, esi
push eax
push edi
mov byte [ebp - 4], 1
call fcn.004bce80
sub esp, 0x54
mov dword [ebp - 4], 0xffffffff
mov esi, esp
mov dword [edi + 0x468], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [edi + 0x46c]
mov dword [esi], eax
lea ecx, [esi + 8]
mov al, byte [edi + 0x470]
mov byte [esi + 4], al
lea eax, [edi + 0x474]
push eax
call fcn.00402a10
mov dword [ebp - 4], 6
lea ecx, [esi + 0x24]
mov ax, word [edi + 0x48c]
mov word [esi + 0x20], ax
lea eax, [edi + 0x490]
push eax
call fcn.00402a10
lea eax, [edi + 0x4a8]
mov byte [ebp - 4], 7
push eax
lea ecx, [esi + 0x3c]
call fcn.00402a10
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [edi + 0x468]
call fcn.004bf110
sub esp, 0x18
mov ecx, esp
push 0xc
push str.SocksVersion
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.00402bc0
mov ecx, 5
call fcn.004ebb30
add esp, 0x18
cmp al, 4
mov eax, dword [edi + 0x468]
jne 0x4f8ded
mov dword [eax + 0xd8], 1
jmp 0x4f8df7
mov dword [eax + 0xd8], 2
cmp dword [edi + 0x500], 0
jne 0x4f8e60
lea eax, [edi + 0x4f0]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x418]
lea eax, [edi + 0x68]
push eax
lea esi, [edi + 0x508]
call fcn.004bd890
mov edi, dword [edi + 0x60]
push esi
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x418]
push esi
sub esp, 0x3d0
mov dword [ebp - 4], 8
mov ecx, esp
push eax
call fcn.004bd890
mov ecx, dword [edi + 0x6c]
call fcn.0041d130
lea ecx, [ebp - 0x418]
mov dword [ebp - 4], 0xffffffff
call fcn.00419bc0
mov edi, dword [ebp - 0x3c]
jmp 0x4f8e66
lea esi, [edi + 0x4f0]
cmp dword [edi + 0x500], 0
jne 0x4f8f3f
lea eax, [edi + 0x160]
push eax
lea ecx, [ebp - 0x38]
call fcn.00402a10
lea eax, [ebp - 0x38]
cmp esi, eax
je 0x4f8eb3
mov ecx, esi
call fcn.004028f0
movups xmm0, xmmword [ebp - 0x38]
mov byte [ebp - 0x38], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
lea ecx, [ebp - 0x38]
call fcn.004028f0
lea eax, [edi + 0x178]
push eax
lea ecx, [ebp - 0x38]
call fcn.00402a10
lea eax, [edi + 0x508]
lea ecx, [ebp - 0x38]
cmp eax, ecx
je 0x4f8f08
mov ecx, eax
call fcn.004028f0
movups xmm0, xmmword [ebp - 0x38]
mov byte [ebp - 0x38], 0
movups xmmword [edi + 0x508], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [edi + 0x518], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
lea ecx, [ebp - 0x38]
call fcn.004028f0
cmp dword [edi + 0x500], 0
jne 0x4f8f3f
cmp dword [edi + 0x68], 3
jne 0x4f8f3f
push 9
push str.anonymous
mov ecx, esi
call fcn.00402bc0
push 7
push str._IEUser
lea ecx, [edi + 0x508]
call fcn.00402bc0
sub esp, 0x18
lea eax, [edi + 0x508]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00402a10
sub esp, 0x18
mov dword [ebp - 4], 9
mov ecx, esp
push esi
call fcn.00402a10
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [edi + 0x468]
call fcn.004b7f00
sub esp, 0x18
mov ecx, esp
push 0x11
push str.ConnectionsAtOnce
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.00402bc0
xor ecx, ecx
call fcn.004ebb30
add esp, 0x18
cmp eax, 2
mov eax, dword [edi + 0x468]
setl cl
mov byte [eax + 0x53c], cl
lea eax, [ebp - 0x18]
mov esi, dword [edi + 0x468]
push eax
push 0
push esi
push 0x40bf10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4f902b
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 0x468]
test ecx, ecx
je 0x4f8ff1
mov eax, dword [ecx]
push 1
call dword [eax]
sub esp, 0x18
mov dword [edi + 0x468], 0
mov ecx, esp
push 0x1f
push str.Failed_to_Start_DownloadEngine.
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.00408270
mov ecx, dword [edi + 0x60]
push edi
push 3
call fcn.005084d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00517154
mov esp, ebp
pop ebp
ret