Function at 0x41e610
Capabilities:
Check http status code
Connect to http server
Create thread
Terminate thread

Disassembly:
push ebp
mov eax, 0x24dc
lea ebp, [esp - 0x245c]
call fcn.004ebd80
mov eax, dword [0x517ad4]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x2458], eax
mov eax, dword [ebp + 0x2464]
push edi
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp + 0x2468]
mov ebx, 0x10000000
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp + 0x2470]
push ebx
add eax, 0xc
and dword [eax], 0
push 0
lea esi, [ebp - 0x30]
mov edi, edx
mov dword [ebp - 0x48], ecx
call fcn.0041e202
push ebx
push dword [ebp - 0x3c]
mov eax, esi
call fcn.0041e263
test eax, eax
je 0x41e950
mov ebx, dword [ebp - 0x38]
xor esi, esi
push esi
push esi
push 3
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, esi
mov dword [ebp - 0x40], eax
je 0x41e950
cmp dword [ebx + 4], esi
mov dword [ebp - 0x80], str.image_gif
mov dword [ebp - 0x7c], str.image_x_xbitmap
mov dword [ebp - 0x78], str.image_jpg
mov dword [ebp - 0x74], str.image_pjpeg
mov dword [ebp - 0x70], str.text_html
mov dword [ebp - 0x6c], str.text_xml
mov dword [ebp - 0x68], 0x4fca84
mov dword [ebp - 0x64], esi
je 0x41e745
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x30]
call fcn.0041e2cb
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
call fcn.0041e32f
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx]
mov eax, dword [eax]
push esi
or edi, 0x400000
push edi
push esi
push ecx
push esi
push eax
push 0x4fca7c
push dword [ebp - 0x40]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x41e72f
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x41e7ae
push eax
call fcn.004013b2
jmp 0x41e7ae
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
call fcn.0041e2cb
mov ebx, eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x30]
call fcn.0041e32f
mov ebx, dword [ebx]
mov eax, dword [eax]
push esi
or edi, 0x400000
push edi
lea ecx, [ebp - 0x80]
push ecx
push ebx
push esi
push eax
push 0x4fca7c
push dword [ebp - 0x40]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x41e797
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x41e7ab
push eax
call fcn.004013b2
mov ebx, dword [ebp - 0x38]
cmp dword [ebp - 0x34], esi
je 0x41e950
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x48], esi
je 0x41e7d1
push esi
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41e940
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x246c]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x44]
push eax
push esi
lea eax, [ebp - 0x60]
push eax
push 0x41e378
push esi
push esi
mov dword [ebp - 0x44], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x41e940
push dword [ebx + 8]
mov eax, dword [ebp - 0x48]
push esi
lea ecx, [ebp - 0x54]
push ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], eax
inc ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x41e8fb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebx + 0xc]
push eax
push 0x20000013
push dword [ebp - 0x34]
mov dword [ebp - 0x3c], 4
call edi
test eax, eax
je 0x41e906
mov eax, dword [ebx + 0xc]
cmp eax, 0x12e
je 0x41e90b
cmp eax, 0x197
jne 0x41e8a9
cmp dword [ebp - 0x38], esi
jne 0x41e8a9
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax - 8]
cmp ecx, esi
je 0x41e895
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2b
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax - 8]
cmp ecx, esi
je 0x41e8ef
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2c
jmp 0x41e8e6
cmp eax, 0x191
jne 0x41e937
cmp dword [ebp - 0x38], esi
jne 0x41e937
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax - 8]
cmp ecx, esi
je 0x41e8d4
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x1c
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax - 8]
cmp ecx, esi
je 0x41e8ef
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x1d
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [ebp - 0x38], 1
jmp 0x41e7ba
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x41e940
mov dword [ebx + 0xc], esi
jmp 0x41e937
push esi
lea edx, [ebp - 0x3c]
mov eax, 0x400
lea ecx, [ebx + 0x18]
push edx
mov dword [ebp - 0x3c], eax
call fcn.00403201
push eax
push 0x21
push dword [ebp - 0x34]
call edi
test eax, eax
je 0x41e937
or eax, 0xffffffff
lea ecx, [ebx + 0x18]
call fcn.0040322d
cmp dword [ebx + 0xc], 0x190
jb 0x41e954
push dword [ebp - 0x34]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x40]
call esi
xor eax, eax
jmp 0x41e963
lea eax, [ebp - 0x40]
push eax
lea esi, [ebx + 0x1c]
call fcn.0040eefe
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0x2458]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
add ebp, 0x245c
leave
ret 0x10