Function at 0x410980
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45d44a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x4109bb
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov eax, dword [ebp + 0x90]
test eax, eax
je 0x4109dd
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
call fcn.0040fe60
test eax, eax
jne 0x410a88
mov eax, dword [0x4790e8]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040fb90
mov edx, dword [eax]
lea eax, [esp + 0x14]
push edx
push 0x478818
push eax
mov byte [esp + 0x34], 1
call fcn.0044c0b3
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 0
call fcn.0044ee01
lea ecx, [esp + 0x14]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0044f1a5
mov ecx, ebp
call fcn.00410d60
push 0x100000
push 0
mov ecx, ebp
call fcn.00411150
push 0
push 0
push 0x3000
mov ecx, ebp
call fcn.00410da0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.0044ee01
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push 0xc
call fcn.0044f2f1
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x28], 2
je 0x410aac
push ebp
mov ecx, eax
call fcn.004084e0
jmp 0x410aae
xor eax, eax
or esi, 0xffffffff
mov ecx, ebp
mov dword [esp + 0x28], esi
mov dword [ebp + 0x90], eax
call fcn.00410d60
mov edx, dword [0x4790e8]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x2c], 3
call fcn.0040fb90
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push ecx
push 0x478818
push edx
mov byte [esp + 0x34], 4
call fcn.0044c0b3
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 3
call fcn.0044ee01
lea eax, [esp + 0x10]
lea ecx, [ebp + 0xc]
push eax
call fcn.0044f1a5
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
movsx ebx, word [eax + 0x10]
mov eax, dword [ebp + 4]
test eax, eax
je 0x410b2d
mov edi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov ecx, dword [ebp + 0x90]
push 0
push 0x3f
push 1
push 0
call fcn.0045b248
test eax, eax
je 0x410c06
mov ecx, dword [ebp + 0x90]
push 0x3f
call fcn.0045b43f
push 0x1000000
push 0x1000000
mov ecx, ebp
call fcn.00411150
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x6c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x1c], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
mov dword [ebp + 0x8c], ebx
push ecx
push 0
push ebp
push 0x410940
push 0
push 0
call fcn.0042d83a
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x100000
mov ecx, ebp
call fcn.00411140
test eax, eax
jne 0x410bd0
push eax
push 0x80
mov ecx, ebp
call fcn.00411f60
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x54], 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.0044ee01
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
call sub.WSOCK32.dll_WSAGetLastError
mov ecx, dword [ebp + 0x90]
mov edi, eax
test ecx, ecx
je 0x410c1e
mov edx, dword [ecx]
push 1
call dword [edx + 4]
lea ecx, [esp + 0x10]
mov dword [ebp + 0x90], 0
mov dword [esp + 0x28], esi
call fcn.0044ee01
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret