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

Disassembly:
mov eax, 0x43d194
call fcn.0042e3c4
push ecx
mov eax, 0x24e4
call fcn.0042de00
mov eax, dword [0x44ecf8]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor esi, esi
mov dword [ebx + 0xc], esi
mov edi, 0x10000000
push edi
push esi
lea ecx, [ebp - 0x249c]
call fcn.004029ad
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x249c]
call fcn.00402a12
test eax, eax
je 0x41828f
push esi
push esi
push 3
push dword [ebp - 0x2478]
push dword [ebp - 0x2480]
push dword [ebp - 0x2484]
push dword [ebp - 0x248c]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x24a4], eax
cmp eax, esi
je 0x41828f
mov dword [ebp - 0x24f4], str.image_gif
mov dword [ebp - 0x24f0], str.image_x_xbitmap
mov dword [ebp - 0x24ec], str.image_jpg
mov dword [ebp - 0x24e8], str.image_pjpeg
mov dword [ebp - 0x24e4], str.text_html
mov dword [ebp - 0x24e0], str.text_xml
mov dword [ebp - 0x24dc], 0x446e84
mov dword [ebp - 0x24d8], esi
lea ecx, [ebp - 0x249c]
cmp dword [ebx + 4], esi
je 0x4180d8
lea eax, [ebp - 0x24bc]
push eax
call fcn.00402a78
mov edi, dword [eax]
lea eax, [ebp - 0x24c0]
push eax
lea ecx, [ebp - 0x249c]
call fcn.00402adb
mov eax, dword [eax]
push esi
mov ecx, dword [ebp + 0x14]
or ecx, 0x400000
push ecx
push esi
push edi
push esi
push eax
push 0x446e7c
push dword [ebp - 0x24a4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x24a0], eax
mov ecx, dword [ebp - 0x24c0]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x4180d0
call fcn.004013ad
mov ecx, dword [ebp - 0x24bc]
jmp 0x418142
lea eax, [ebp - 0x24b4]
push eax
call fcn.00402a78
mov edi, dword [eax]
lea eax, [ebp - 0x24b0]
push eax
lea ecx, [ebp - 0x249c]
call fcn.00402adb
mov eax, dword [eax]
push esi
mov ecx, dword [ebp + 0x14]
or ecx, 0x400000
push ecx
lea ecx, [ebp - 0x24f4]
push ecx
push edi
push esi
push eax
push 0x446e7c
push dword [ebp - 0x24a4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x24a0], eax
mov ecx, dword [ebp - 0x24b0]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x41813c
call fcn.004013ad
mov ecx, dword [ebp - 0x24b4]
add ecx, 0xfffffff4
cmp ecx, dword [0x453174]
je 0x418152
call fcn.004013ad
cmp dword [ebp - 0x24a0], esi
je 0x41828f
mov dword [ebp - 0x24a8], esi
cmp dword [ebp + 0x18], esi
je 0x418192
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x418192
push dword [ebp - 0x24a0]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x24a4]
call esi
jmp 0x41828f
mov eax, dword [ebp - 0x24a0]
mov dword [ebp - 0x24d4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24d0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24cc], eax
mov dword [ebp - 0x24b8], esi
lea eax, [ebp - 0x24b8]
push eax
push esi
lea eax, [ebp - 0x24d4]
push eax
push 0x412a7a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x418177
mov dword [ebp - 0x24c8], edi
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24c4], eax
push dword [ebx + 8]
push esi
lea ecx, [ebp - 0x24c8]
push ecx
xor ecx, ecx
cmp eax, esi
setne cl
inc ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
je 0x418233
mov dword [ebp - 4], esi
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x24a0]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x24a4]
call esi
or dword [ebp - 4], 0xffffffff
jmp 0x41828f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24ac], 4
push esi
lea eax, [ebp - 0x24ac]
push eax
lea eax, [ebx + 0xc]
push eax
push 0x20000013
push dword [ebp - 0x24a0]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
call edi
test eax, eax
jne 0x418296
mov dword [ebx + 0xc], esi
cmp dword [ebx + 0xc], 0x190
jae 0x418177
cmp dword [ebp - 0x24a0], esi
jne 0x41837a
push dword [ebp - 0x24a4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x41838f
mov eax, dword [ebx + 0xc]
cmp eax, 0x12e
jne 0x4182d7
mov eax, 0x400
mov dword [ebp - 0x24ac], eax
lea ecx, [ebx + 0x18]
push esi
lea edx, [ebp - 0x24ac]
push edx
push eax
call fcn.00401d43
push eax
push 0x21
push dword [ebp - 0x24a0]
call edi
test eax, eax
je 0x41826a
push 0xffffffffffffffff
lea ecx, [ebx + 0x18]
call fcn.00401d78
jmp 0x41826a
cmp eax, 0x197
jne 0x418318
cmp dword [ebp - 0x24a8], esi
jne 0x418318
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax - 8]
cmp ecx, esi
je 0x418304
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2b
push dword [ebp - 0x24a0]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax - 8]
cmp ecx, esi
je 0x41836b
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2c
jmp 0x41835f
cmp eax, 0x191
jne 0x41826a
cmp dword [ebp - 0x24a8], esi
jne 0x41826a
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax - 8]
cmp ecx, esi
je 0x41834d
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x1c
push dword [ebp - 0x24a0]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax - 8]
cmp ecx, esi
je 0x41836b
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x1d
push dword [ebp - 0x24a0]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [ebp - 0x24a8], 1
jmp 0x418164
lea eax, [ebp - 0x24a4]
push eax
lea ecx, [ebx + 0x1c]
call fcn.004137b7
mov eax, dword [ebp - 0x24a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0042dc80
pop edi
pop esi
pop ebx
leave
ret 0x14