Function at 0x4fd870
Capabilities:
Check if file exists
Create thread
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5448d5
mov eax, dword fs:[0]
push eax
sub esp, 0x7e4
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 - 0x3f0], ecx
mov eax, dword [edi + 0x664]
mov esi, edi
push 0
push 0
push 0xf0
push dword [eax + 0xc]
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x3f4], esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
je 0x4fd8f1
call fcn.004ec6e0
mov ecx, dword [esi + 0x65c]
push eax
mov byte [edi + 0x328], al
mov byte [edi + 0x6a4], al
call fcn.004e45b0
mov eax, dword [esi + 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
lea eax, [edi + 0x68]
push eax
lea ecx, [ebp - 0x3e8]
mov dword [ebp - 0x418], eax
call fcn.004bd890
lea eax, [edi + 0x1c8]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x414]
call fcn.00402a10
lea eax, [ebp - 0x414]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x3e8]
call fcn.0040d030
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x400]
cmp ecx, 0x10
jb 0x4fd99b
mov edx, dword [ebp - 0x414]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4fd991
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fe001
push ecx
push edx
call fcn.00517162
add esp, 8
lea esi, [edi + 0x438]
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 8
lea eax, [esi + 0x14]
mov dword [ebp - 0x3f8], esi
mov ecx, esi
mov dword [ebp - 0x3ec], eax
jb 0x4fd9be
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4fd9ce
test al, 0x10
jne 0x4fd9d5
mov ecx, esi
call fcn.00408b60
mov dword [ebp - 4], 0
jmp 0x4fd9fd
mov eax, dword [ebp - 0x3ec]
mov ecx, esi
cmp dword [eax], 8
jb 0x4fda0c
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4fdfaa
test al, 0x10
je 0x4fdfaa
push 0x5b8
mov byte [ebp - 4], 4
call fcn.00517390
add esp, 4
mov dword [ebp - 0x3ec], eax
mov dword [ebp - 0x3f8], eax
push 0x5b8
push 0
push eax
mov byte [ebp - 4], 5
call fcn.00519680
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x420], esp
push esi
call fcn.00408180
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x3fc], esp
mov edx, esi
push 0x5667c8
call fcn.00409730
add esp, 4
sub esp, 0x3d0
mov byte [ebp - 4], 7
mov ecx, esp
push dword [ebp - 0x418]
call fcn.004bd890
movzx eax, byte [edi + 0x694]
mov ecx, dword [ebp - 0x3ec]
push eax
push edi
mov byte [ebp - 4], 5
call fcn.004bce80
mov byte [ebp - 4], 4
push 0x5b8
mov dword [edi + 0x468], eax
call fcn.00517390
add esp, 4
mov dword [ebp - 0x3ec], eax
mov dword [ebp - 0x18], eax
push 0x5b8
push 0
push eax
mov byte [ebp - 4], 8
call fcn.00519680
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x3fc], esp
push esi
call fcn.00408180
sub esp, 0x18
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x420], esp
mov edx, esi
push 0x5667c0
call fcn.00409730
add esp, 4
sub esp, 0x3d0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x3e8]
mov ecx, esp
push eax
call fcn.004bd890
movzx eax, byte [edi + 0x694]
mov ecx, dword [ebp - 0x3ec]
push eax
push edi
mov byte [ebp - 4], 8
call fcn.004bce80
mov dword [edi + 0x720], eax
sub esp, 0x54
mov dword [ebp - 4], 0
mov esi, esp
mov dword [ebp - 0x18], 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 byte [ebp - 4], 0xc
lea ecx, [esi + 0x24]
movzx eax, word [edi + 0x48c]
mov word [esi + 0x20], ax
lea eax, [edi + 0x490]
push eax
call fcn.00402a10
add edi, 0x4a8
mov byte [ebp - 4], 0xd
push edi
lea ecx, [esi + 0x3c]
call fcn.00402a10
mov ecx, dword [ebp - 0x3f0]
mov byte [ebp - 4], 0
mov ecx, dword [ecx + 0x468]
call fcn.004bf110
mov ecx, dword [ebp - 0x3f0]
sub esp, 0x54
mov esi, esp
mov dword [ebp - 0x18], esi
mov eax, dword [ecx + 0x46c]
mov dword [esi], eax
mov al, byte [ecx + 0x470]
mov byte [esi + 4], al
lea eax, [ecx + 0x474]
push eax
lea ecx, [esi + 8]
call fcn.00402a10
mov ecx, dword [ebp - 0x3f0]
mov byte [ebp - 4], 0xe
movzx eax, word [ecx + 0x48c]
mov word [esi + 0x20], ax
lea eax, [ecx + 0x490]
push eax
lea ecx, [esi + 0x24]
call fcn.00402a10
push edi
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 0xf
call fcn.00402a10
mov edi, dword [ebp - 0x3f0]
mov byte [ebp - 4], 0
mov ecx, dword [edi + 0x720]
call fcn.004bf110
call fcn.004ec7c0
mov ecx, dword [edi + 0x468]
cmp al, 4
jne 0x4fdc5a
mov dword [ecx + 0xd8], 1
mov eax, dword [edi + 0x720]
mov dword [eax + 0xd8], 1
jmp 0x4fdc74
mov dword [ecx + 0xd8], 2
mov eax, dword [edi + 0x720]
mov dword [eax + 0xd8], 2
cmp dword [edi + 0x500], 0
jne 0x4fdce8
push dword [ebp - 0x418]
lea eax, [edi + 0x4f0]
lea ecx, [ebp - 0x7f0]
mov dword [ebp - 0x3ec], eax
lea esi, [edi + 0x508]
call fcn.004bd890
mov edi, dword [edi + 0x60]
push esi
mov esi, dword [ebp - 0x3ec]
lea eax, [ebp - 0x7f0]
push esi
sub esp, 0x3d0
mov byte [ebp - 4], 0x10
mov ecx, esp
push eax
call fcn.004bd890
mov ecx, dword [edi + 0x6c]
call fcn.0041d130
lea ecx, [ebp - 0x7f0]
mov byte [ebp - 4], 0
call fcn.00419bc0
mov edi, dword [ebp - 0x3f0]
mov eax, dword [ebp - 0x3f4]
jmp 0x4fdcf4
mov eax, dword [ebp - 0x3f4]
lea esi, [eax + 0x4f0]
cmp dword [edi + 0x500], 0
jne 0x4fdddc
lea eax, [edi + 0x160]
push eax
lea ecx, [ebp - 0x414]
call fcn.00402a10
lea eax, [ebp - 0x414]
cmp esi, eax
je 0x4fdd56
mov ecx, esi
call fcn.004028f0
movups xmm0, xmmword [ebp - 0x414]
mov byte [ebp - 0x414], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x404]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x404], 0
mov dword [ebp - 0x400], 0xf
lea ecx, [ebp - 0x414]
call fcn.004028f0
lea eax, [edi + 0x178]
push eax
lea ecx, [ebp - 0x414]
call fcn.00402a10
lea eax, [edi + 0x508]
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x3f4], eax
cmp eax, ecx
je 0x4fddc9
mov ecx, eax
call fcn.004028f0
movups xmm0, xmmword [ebp - 0x414]
mov byte [ebp - 0x414], 0
movups xmmword [edi + 0x508], xmm0
movq xmm0, qword [ebp - 0x404]
movq qword [edi + 0x518], xmm0
mov dword [ebp - 0x404], 0
mov dword [ebp - 0x400], 0xf
lea ecx, [ebp - 0x414]
call fcn.004028f0
lea eax, [edi + 0x508]
jmp 0x4fdde7
add eax, 0x508
mov dword [ebp - 0x3f4], eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00402a10
sub esp, 0x18
mov byte [ebp - 4], 0x11
mov ecx, esp
push esi
call fcn.00402a10
mov byte [ebp - 4], 0
mov ecx, dword [edi + 0x468]
call fcn.004b7f00
mov eax, dword [ebp - 0x3f4]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00402a10
sub esp, 0x18
mov byte [ebp - 4], 0x12
mov ecx, esp
push esi
call fcn.00402a10
mov byte [ebp - 4], 0
mov ecx, dword [edi + 0x720]
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
cmp eax, 2
mov eax, dword [edi + 0x468]
setl cl
mov byte [eax + 0x53c], cl
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 + 0x720]
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
je 0x4fdf05
mov esi, dword [edi + 0x720]
lea eax, [ebp - 0x18]
push eax
push 0
push esi
push 0x40bf10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4fdfda
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 0x468]
test ecx, ecx
je 0x4fdf1e
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi + 0x720]
mov dword [edi + 0x468], 0
test ecx, ecx
je 0x4fdf38
mov eax, dword [ecx]
push 1
call dword [eax]
sub esp, 0x18
mov dword [edi + 0x720], 0
mov ecx, esp
push 0x20
push str.Failed_to_Start_DownloadEngines.
jmp 0x4fdfb6
sub esp, 0x18
mov ecx, esp
push 0x21
push 0x566768
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
lea ecx, [ebp - 0x3e8]
call fcn.00419bc0
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
call fcn.0051eb64
int3