Function at 0x427830
Capabilities:
Access peb ldr_data
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f53f
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x487550]
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 eax, dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp - 0x44]
push ecx
push 4
push esi
push 0x42f690
xor ebx, ebx
mov dword [esi], vtable.CAuntecBasedThread.0
push ebx
mov byte [esi + 4], 1
push ebx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], eax
mov byte [esi + 5], 1
call fcn.0044d9ae
add esp, 0x18
mov dword [esi + 8], eax
lea edi, [esi + 0xc]
mov dword [ebp - 4], ebx
mov dword [edi], vtable.CTCPClient.0
mov dword [edi + 0x18], ebx
mov eax, 0xf
mov dword [edi + 0x1c], eax
mov byte [edi + 8], bl
or ecx, 0xffffffff
mov dword [edi + 0x20], ecx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ecx
mov edx, 0xffff
mov word [edi + 0x26], dx
mov dword [edi + 0x54], eax
mov dword [edi + 0x50], ebx
mov byte [edi + 0x40], bl
mov dword [edi + 0x78], eax
mov dword [edi + 0x74], ebx
mov byte [edi + 0x64], bl
mov dword [edi + 0x38], ebx
mov dword [edi + 0x5c], ebx
mov dword [esi + 0x90], ebx
lea ebx, [esi + 0x94]
mov dword [esi], vtable.CDownloadThread.0
mov dword [edi], vtable.CDownloadThread.1.0
mov dword [esi + 0x88], 1
xor ecx, ecx
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], ecx
mov byte [ebx + 4], cl
mov edx, 0x50
mov word [ebx + 0x1c], dx
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x34], ecx
mov byte [ebx + 0x24], cl
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
mov byte [ebp - 4], 2
mov dword [esi + 0xd0], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xd8], eax
mov dword [esi + 0xe8], eax
xor eax, eax
mov dword [esi + 0xe0], edx
mov edx, dword [ebp + 0x20]
mov dword [esi + 0xdc], ecx
mov dword [esi + 0xec], ecx
mov dword [esi + 0xf0], eax
mov dword [esi + 0xf4], eax
lea ecx, [esi + 0xf8]
mov dword [esi + 0xe4], edx
mov dword [ecx + 0x14], eax
push 0xffffffffffffffff
mov dword [ecx + 0x18], 0xf
mov byte [ecx + 4], al
push eax
mov eax, dword [ebp - 0x38]
push eax
call fcn.004038f0
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp + 0x28]
mov byte [ebp - 4], 3
mov dword [esi + 0x118], ecx
push eax
lea ecx, [ebp - 0x80]
mov dword [esi + 0x11c], edx
call fcn.0042b660
add esp, 4
mov dword [ebp - 0x38], eax
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.004038f0
mov eax, dword [ebp - 0x38]
mov cx, word [eax + 0x1c]
push 0xffffffffffffffff
push 0
add eax, 0x20
mov word [ebx + 0x1c], cx
push eax
lea ecx, [ebx + 0x20]
call fcn.004038f0
cmp dword [ebp - 0x48], 0x10
jb 0x4279ed
mov edx, dword [ebp - 0x5c]
push edx
call fcn.0044caf8
add esp, 4
cmp dword [ebp - 0x68], 0x10
mov eax, 0xf
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
jb 0x427a17
mov eax, dword [ebp - 0x7c]
push eax
call fcn.0044caf8
add esp, 4
mov eax, 0xf
xor edx, edx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], edx
mov byte [ebp - 0x7c], dl
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0x2c], dl
mov byte [ebp - 4], 5
mov eax, dword [0x48a8b0]
lea ecx, [eax + 0x70]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x38], eax
cmp ecx, edx
je 0x427a50
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x34]
push 0xffffffffffffffff
push 0
add eax, 0x38
mov dword [ebp - 0x34], ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.004038f0
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 4]
test eax, eax
je 0x427a77
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x34]
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [esi + 0x6c]
mov dword [esi + 0x68], eax
call fcn.004038f0
mov byte [ebp - 4], 6
movzx edx, word [esi + 0xb0]
push edx
mov edx, ebx
mov ecx, edi
call fcn.0042f930
jmp 0x427af2
mov ebx, dword [ebp + 0xc]
cmp ebx, dword [edi + 0x28]
lea eax, [edi + 0x28]
je 0x427b1b
mov ecx, dword [edi + 0x34]
mov dword [eax], ebx
cmp ecx, 0xffffffff
je 0x427b1b
push 4
push eax
push 0x1006
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp ebx, dword [edi + 0x2c]
lea eax, [edi + 0x2c]
je 0x427b41
mov edi, dword [edi + 0x34]
mov dword [eax], ebx
cmp edi, 0xffffffff
je 0x427b41
push 4
push eax
push 0x1005
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x100000
call fcn.0044d681
add esp, 4
cmp dword [esi + 8], 0
mov dword [esi + 0x8c], eax
je 0x427b68
mov edx, dword [esi + 8]
push edx
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [ebp - 0x18], 0x10
jb 0x427b7a
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0044caf8
add esp, 4
mov eax, esi
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.0044c790
mov esp, ebp
pop ebp
ret 0x24