Function at 0x406cd0
Capabilities:
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c2d0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5cefd4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x114], 1
lea edi, [ebx + 0x110]
jne 0x406d98
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
cmp eax, ecx
jb 0x406d20
mov dword [edi + 4], 2
jmp 0x406d98
cmp dword [edi + 0x24], 0
jne 0x406d2f
mov ecx, edi
call fcn.004082e0
jmp 0x406d98
mov dword [ebp - 0x10], 0
mov esi, 4
nop dword [eax + eax]
test esi, esi
jle 0x406d7d
lea eax, [ebp - 0x10]
dec esi
push eax
push 0x8000
push dword [edi + 0x24]
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
add dword [edi + 0x1c], eax
push 0
push ecx
push eax
push dword [edi + 0x24]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
cmp eax, ecx
jb 0x406d40
cmp eax, ecx
jb 0x406d98
push dword [edi + 0xc]
mov dword [edi + 4], 2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xc], 0
mov edx, dword [ebx + 0xd8]
test edx, edx
je 0x406e1b
cmp dword [ebx + 0x114], 1
je 0x406db2
mov eax, 0xff
jmp 0x406e0a
mov ecx, dword [ebx + 0x130]
cmp ecx, 1
jae 0x406dc4
mov eax, 0xff
jmp 0x406e0a
mov eax, dword [ebx + 0x12c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5b08a0]
cvtpd2ps xmm1, xmm0
movd xmm0, ecx
mulss xmm1, dword [0x5b0898]
shr ecx, 0x1f
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [ecx*8 + 0x5b08a0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
cvttss2si eax, xmm1
push 0
push eax
push 0x402
push dword [edx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebx + 0x114], 1
je 0x4070b9
mov eax, dword [ebx + 0x118]
mov dword [ebx + 0xf0], 0
mov dword [ebp - 0x14], eax
cmp dword [eax - 0xc], 0
jle 0x4070a8
lea esi, [eax - 0x10]
mov dword [ebx + 0xf0], 0x14
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov edx, eax
lea eax, [esi + 0xc]
jl 0x406e6d
cmp edx, dword [esi]
jne 0x406e6d
lock inc dword [eax]
jmp 0x406ea3
mov eax, dword [edx]
lea ecx, [esi + 4]
push 2
push dword [ecx]
mov dword [ebp - 0x10], ecx
mov ecx, edx
call dword [eax]
mov esi, eax
test esi, esi
je 0x4070cb
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov dword [esi + 4], eax
mov eax, dword [ecx]
inc eax
push eax
push dword [ebp - 0x14]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00403f00
add esp, 0x10
add esi, 0x10
mov dword [ebp - 0x10], esi
push 0x5ae04c
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403b90
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x18], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x14], eax
cmp eax, ecx
je 0x406f29
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x406f1a
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x406f1a
push dword [ebp - 0x14]
call fcn.00403e90
add esp, 4
mov dword [ebp - 0x14], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x406f12
mov esi, dword [ebp - 0x18]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
jmp 0x406f29
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.00403c90
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406f48
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5ae080
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403b90
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [esi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x18], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x1c], eax
cmp eax, ecx
je 0x406fc1
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x406fb2
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x406fb2
push dword [ebp - 0x1c]
call fcn.00403e90
add esp, 4
mov dword [ebp - 0x1c], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x406faa
mov esi, dword [ebp - 0x18]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
jmp 0x406fc1
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.00403c90
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406fe0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5ae0a8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403b90
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [esi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x18], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x1c], eax
cmp eax, ecx
je 0x407059
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x40704a
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x40704a
push dword [ebp - 0x1c]
call fcn.00403e90
add esp, 4
mov dword [ebp - 0x1c], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x407042
mov esi, dword [ebp - 0x18]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
jmp 0x407059
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.00403c90
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407078
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x30
push 0x5adbe4
push esi
mov ecx, ebx
call fcn.00415e66
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4070b2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4070b2
mov dword [ebx + 0xf0], 5
mov ecx, edi
call fcn.004082e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00404010
int3