Function at 0x40e430
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x466b58
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4851d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x44]
xor edi, edi
cmp eax, edi
je 0x40e46e
push eax
call fcn.0042cbc2
add esp, 4
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x40]
cmp eax, edi
je 0x40e498
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
push fcn.0040bad0
push ecx
push 0x11c
push eax
call fcn.0044ead4
push ebx
call fcn.0042cbc2
add esp, 4
mov dword [esi + 0x40], edi
mov edx, dword [esp + 0x38]
cmp edx, edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x20], edi
lea ebx, [esi + 8]
jne 0x40e4ad
xor eax, eax
jmp 0x40e4c1
mov eax, edx
lea ebp, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40e4b2
sub eax, ebp
sar eax, 1
push eax
push edx
mov ecx, ebx
call fcn.004069c0
mov ecx, dword [esp + 0x3c]
cmp ecx, edi
lea ebp, [esi + 0x18]
jne 0x40e4d9
xor eax, eax
jmp 0x40e4f3
mov eax, ecx
lea edx, [eax + 2]
mov dword [esp + 0x38], edx
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x40e4e2
sub eax, dword [esp + 0x38]
sar eax, 1
push eax
push ecx
mov ecx, ebp
call fcn.004069c0
lea edi, [esi + 0x1c]
push ebp
mov ecx, edi
call fcn.00408560
push 9
push str..download
mov ecx, edi
call fcn.00408430
push 0x46bb24
lea ecx, [esp + 0x1c]
call fcn.00406e90
xor edi, edi
push 0x46bb24
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], edi
call fcn.00406e90
push 0x46bb24
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 1
call fcn.00406e90
mov eax, dword [ebx]
lea ecx, [esi + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x3c]
lea edx, [esp + 0x24]
push edx
push eax
mov byte [esp + 0x44], 2
mov dword [esp + 0x34], edi
call fcn.0040c2c0
mov eax, dword [ebx]
mov ecx, dword [esi + 0x3c]
push eax
call fcn.0040c6f0
lea eax, [esp + 0x24]
push eax
push edi
push esi
push 0x40e3e0
push edi
push edi
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x28], eax
or esi, 0xffffffff
cmp eax, edi
jne 0x40e60e
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e5c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e5e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x30], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40e607
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40e6f5
cmp eax, esi
jne 0x40e67f
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e636
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e65a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x30], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40e607
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40e6f5
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e6ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e6cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x30], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40e6f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8