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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12a4
call fcn.004bf900
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x10000000
add eax, 0xc
push ebx
lea esi, [ebp - 0x12a4]
mov edi, ecx
mov dword [eax], ebx
call fcn.00416cc3
push 0x10000000
push dword [ebp + 0xc]
mov eax, esi
call fcn.00416d24
test eax, eax
je 0x417429
mov esi, dword [ebp + 8]
push ebx
push ebx
push 3
push dword [ebp - 0x1280]
push dword [ebp - 0x1288]
push dword [ebp - 0x128c]
push dword [ebp - 0x1294]
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x417429
cmp dword [esi + 4], ebx
mov dword [ebp - 0x40], str.image_gif
mov dword [ebp - 0x3c], str.image_x_xbitmap
mov dword [ebp - 0x38], 0x4cc110
mov dword [ebp - 0x34], str.image_pjpeg
mov dword [ebp - 0x30], str.text_html
mov dword [ebp - 0x2c], str.text_xml
mov dword [ebp - 0x28], 0x4cc0e8
mov dword [ebp - 0x24], ebx
je 0x41725f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x12a4]
call fcn.00416d8b
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x12a4]
call fcn.00416def
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, dword [eax]
push ebx
or edi, 0x400000
push edi
push ebx
push ecx
push ebx
push eax
push 0x4cc0e4
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x417249
push eax
call fcn.00401377
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4172ce
push eax
call fcn.00401377
jmp 0x4172ce
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x12a4]
call fcn.00416d8b
mov esi, eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x12a4]
call fcn.00416def
mov esi, dword [esi]
mov eax, dword [eax]
push ebx
or edi, 0x400000
push edi
lea ecx, [ebp - 0x40]
push ecx
push esi
push ebx
push eax
push 0x4cc0e4
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4172b7
push eax
call fcn.00401377
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4172cb
push eax
call fcn.00401377
mov esi, dword [ebp + 8]
cmp dword [ebp + 0xc], ebx
je 0x417429
mov dword [ebp + 8], ebx
cmp dword [ebp + 0x18], ebx
je 0x4172f1
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x417419
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push 0x416e38
push ebx
push ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
je 0x417419
push dword [esi + 8]
mov eax, dword [ebp + 0x18]
push ebx
lea ecx, [ebp - 0x14]
push ecx
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
inc ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x417410
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0xc]
push eax
push 0x20000013
push dword [ebp + 0xc]
mov dword [ebp - 4], 4
call edi
test eax, eax
je 0x417432
mov eax, dword [esi + 0xc]
cmp eax, 0x12e
je 0x417437
cmp eax, 0x197
jne 0x4173c0
cmp dword [ebp + 8], ebx
jne 0x4173c0
mov eax, dword [esi + 0x10]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4173af
inc ecx
push ecx
push eax
push 0x2b
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov eax, dword [esi + 0x14]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x417404
inc ecx
push ecx
push eax
push 0x2c
jmp 0x4173fb
cmp eax, 0x191
jne 0x417463
cmp dword [ebp + 8], ebx
jne 0x417463
mov eax, dword [esi + 0x10]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4173ec
inc ecx
push ecx
push eax
push 0x1c
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov eax, dword [esi + 0x14]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x417404
inc ecx
push ecx
push eax
push 0x1d
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov dword [ebp + 8], 1
jmp 0x4172da
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp + 0xc]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 8]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
mov dword [esi + 0xc], ebx
jmp 0x417463
push ebx
lea edx, [ebp - 4]
mov eax, 0x400
lea ecx, [esi + 0x18]
push edx
mov dword [ebp - 4], eax
call fcn.004030e2
push eax
push 0x21
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x417463
or eax, 0xffffffff
lea ecx, [esi + 0x18]
call fcn.0040310e
mov eax, dword [esi + 0xc]
cmp eax, 0x190
jae 0x417419
cmp eax, 0x12e
je 0x417419
lea eax, [ebp - 8]
push eax
add esi, 0x1c
call fcn.00415250
mov eax, dword [ebp + 0xc]
jmp 0x41742b