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

Disassembly:
mov eax, 0x43cf24
call fcn.0042e160
push ecx
mov eax, 0x24e4
call fcn.0042db90
mov eax, dword [0x44dcf8]
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.00402a5e
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x249c]
call fcn.00402ac3
test eax, eax
je 0x41807e
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 0x41807e
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], 0x445e84
mov dword [ebp - 0x24d8], esi
lea ecx, [ebp - 0x249c]
cmp dword [ebx + 4], esi
je 0x417ec7
lea eax, [ebp - 0x24bc]
push eax
call fcn.00402b29
mov edi, dword [eax]
lea eax, [ebp - 0x24c0]
push eax
lea ecx, [ebp - 0x249c]
call fcn.00402b8c
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 0x445e7c
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 [0x452174]
je 0x417ebf
call fcn.004013ad
mov ecx, dword [ebp - 0x24bc]
jmp 0x417f31
lea eax, [ebp - 0x24b4]
push eax
call fcn.00402b29
mov edi, dword [eax]
lea eax, [ebp - 0x24b0]
push eax
lea ecx, [ebp - 0x249c]
call fcn.00402b8c
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 0x445e7c
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 [0x452174]
je 0x417f2b
call fcn.004013ad
mov ecx, dword [ebp - 0x24b4]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x417f41
call fcn.004013ad
cmp dword [ebp - 0x24a0], esi
je 0x41807e
mov dword [ebp - 0x24a8], esi
cmp dword [ebp + 0x18], esi
je 0x417f81
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x417f81
push dword [ebp - 0x24a0]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x24a4]
call esi
jmp 0x41807e
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 0x41285e
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x417f66
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 0x418022
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 0x41807e
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 0x418085
mov dword [ebx + 0xc], esi
cmp dword [ebx + 0xc], 0x190
jae 0x417f66
cmp dword [ebp - 0x24a0], esi
jne 0x418169
push dword [ebp - 0x24a4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x41817e
mov eax, dword [ebx + 0xc]
cmp eax, 0x12e
jne 0x4180c6
mov eax, 0x400
mov dword [ebp - 0x24ac], eax
lea ecx, [ebx + 0x18]
push esi
lea edx, [ebp - 0x24ac]
push edx
push eax
call fcn.00401d6b
push eax
push 0x21
push dword [ebp - 0x24a0]
call edi
test eax, eax
je 0x418059
push 0xffffffffffffffff
lea ecx, [ebx + 0x18]
call fcn.00401da0
jmp 0x418059
cmp eax, 0x197
jne 0x418107
cmp dword [ebp - 0x24a8], esi
jne 0x418107
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax - 8]
cmp ecx, esi
je 0x4180f3
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 0x41815a
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2c
jmp 0x41814e
cmp eax, 0x191
jne 0x418059
cmp dword [ebp - 0x24a8], esi
jne 0x418059
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax - 8]
cmp ecx, esi
je 0x41813c
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 0x41815a
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 0x417f53
lea eax, [ebp - 0x24a4]
push eax
lea ecx, [ebx + 0x1c]
call fcn.004135b5
mov eax, dword [ebp - 0x24a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0042da10
pop edi
pop esi
pop ebx
leave
ret 0x14