Function at 0x406480
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578b40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 5
call fcn.0042f1a0
mov ecx, eax
test ecx, ecx
je 0x406707
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea edx, [ebp + 8]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x50]
call fcn.0042f8f0
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x4064df
mov eax, dword [eax]
push eax
push dword [ebx + 4]
lea eax, [ebp - 0x14]
push str._wsdownload_ws
push eax
call fcn.00421ac0
add esp, 0x10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x50]
call fcn.0042ed00
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x58], ebx
lea ecx, [ecx - 0x10]
call fcn.0042eab0
mov dword [ebp - 0x1c], eax
add eax, 0x10
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0042eab0
mov dword [ebp - 0x20], eax
add eax, 0x10
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov ecx, eax
mov dword [ebp - 0x2c], eax
call fcn.0042eab0
mov dword [ebp - 0x24], eax
add eax, 0x10
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
lea ecx, [ecx - 0x10]
call fcn.0042eab0
mov dword [ebp - 0x28], eax
add eax, 0x10
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.0042eab0
mov edi, dword [ebp + 0x20]
mov esi, eax
mov dword [ebp - 0x3c], edi
lea eax, [esi + 0x10]
mov dword [ebp - 0x40], eax
push 0x20
mov byte [ebp - 4], 0xc
call fcn.0054fad4
mov ebx, eax
add esp, 4
mov dword [ebp + 0x20], ebx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x30], ebx
mov dword [ebx], eax
call fcn.0042eab0
add eax, 0x10
mov dword [ebx + 4], eax
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 0xe
call fcn.0042eab0
add eax, 0x10
mov dword [ebx + 8], eax
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 0xf
call fcn.0042eab0
add eax, 0x10
mov dword [ebx + 0xc], eax
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 0x10
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x10], eax
call fcn.0042eab0
add eax, 0x10
mov dword [ebx + 0x14], eax
mov ecx, esi
mov byte [ebp - 4], 0x11
call fcn.0042eab0
add eax, 0x10
mov dword [ebp + 0x1c], ebx
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edi
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x12
push eax
push 0
push ebx
push 0x424ec0
push 0
push 0
call fcn.0055b158
add esp, 0x18
mov dword [ebp - 0x38], eax
test eax, eax
je 0x4066f9
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x14
call fcn.00408290
lea ecx, [ebp - 0x38]
call fcn.0042e630
cmp dword [ebp - 0x34], 0
jne 0x406711
mov edx, dword [ebp - 0x2c]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406666
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406680
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40669a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4066b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4066ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4066e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push 6
mov dword [ebp - 0x34], 0
call fcn.0053960f
push 0x80004005
call fcn.0042f720
call fcn.00554b95
int3