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

Disassembly:
mov eax, 0x403fe0
call fcn.00403e04
push ecx
mov eax, 0x24e0
call fcn.00403d70
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
mov dword [edi + 0xc], esi
mov ebx, 0x10000000
push ebx
push esi
lea ecx, [ebp - 0x2498]
call fcn.004038b4
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x2498]
call fcn.00403919
test eax, eax
je 0x4036ab
push esi
push esi
push 3
push dword [ebp - 0x2474]
push dword [ebp - 0x247c]
push dword [ebp - 0x2480]
push dword [ebp - 0x2488]
push dword [edi]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x249c], eax
cmp eax, esi
je 0x4036ab
mov dword [ebp - 0x24bc], str.image_gif
mov dword [ebp - 0x24b8], str.image_x_xbitmap
mov dword [ebp - 0x24b4], str.image_jpg
mov dword [ebp - 0x24b0], str.image_pjpeg
mov dword [ebp - 0x24ac], str.text_html
mov dword [ebp - 0x24a8], str.text_xml
mov dword [ebp - 0x24a4], 0x405c70
mov dword [ebp - 0x24a0], esi
lea ecx, [ebp - 0x2498]
cmp dword [edi + 4], esi
je 0x40350a
lea eax, [ebp - 0x24c0]
push eax
call fcn.00403981
mov ebx, dword [eax]
lea eax, [ebp - 0x24c4]
push eax
lea ecx, [ebp - 0x2498]
call fcn.00403a30
mov eax, dword [eax]
push esi
mov ecx, dword [ebp + 0x14]
or ecx, 0x400000
push ecx
push esi
push ebx
push esi
push eax
push 0x405c68
push dword [ebp - 0x249c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x24c8], eax
lea ecx, [ebp - 0x24c4]
call fcn.0040264b
lea ecx, [ebp - 0x24c0]
jmp 0x403569
lea eax, [ebp - 0x24cc]
push eax
call fcn.00403981
mov ebx, dword [eax]
lea eax, [ebp - 0x24d0]
push eax
lea ecx, [ebp - 0x2498]
call fcn.00403a30
mov eax, dword [eax]
push esi
mov ecx, dword [ebp + 0x14]
or ecx, 0x400000
push ecx
lea ecx, [ebp - 0x24bc]
push ecx
push ebx
push esi
push eax
push 0x405c68
push dword [ebp - 0x249c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x24c8], eax
lea ecx, [ebp - 0x24d0]
call fcn.0040264b
lea ecx, [ebp - 0x24cc]
call fcn.0040264b
cmp dword [ebp - 0x24c8], esi
je 0x4036ab
mov dword [ebp - 0x24d4], esi
cmp dword [ebp + 0x18], esi
je 0x4035ae
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4035ae
push dword [ebp - 0x24c8]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x249c]
call esi
jmp 0x4036ab
mov eax, dword [ebp - 0x24c8]
mov dword [ebp - 0x24e0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24dc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24d8], eax
mov dword [ebp - 0x24e4], esi
lea eax, [ebp - 0x24e4]
push eax
push esi
lea eax, [ebp - 0x24e0]
push eax
push 0x403a69
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
je 0x403593
mov dword [ebp - 0x24ec], ebx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24e8], eax
push dword [edi + 8]
push esi
lea ecx, [ebp - 0x24ec]
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 0x40364f
mov dword [ebp - 4], esi
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x24c8]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x249c]
call esi
or dword [ebp - 4], 0xffffffff
jmp 0x4036ab
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24f0], 4
push esi
lea eax, [ebp - 0x24f0]
push eax
lea eax, [edi + 0xc]
push eax
push 0x20000013
push dword [ebp - 0x24c8]
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoW]
call ebx
test eax, eax
jne 0x4036b2
mov dword [edi + 0xc], esi
cmp dword [edi + 0xc], 0x190
jae 0x403593
cmp dword [ebp - 0x24c8], esi
jne 0x403796
push dword [ebp - 0x249c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x4037ab
mov eax, dword [edi + 0xc]
cmp eax, 0x12e
jne 0x4036f3
mov eax, 0x400
mov dword [ebp - 0x24f0], eax
lea ecx, [edi + 0x18]
push esi
lea edx, [ebp - 0x24f0]
push edx
push eax
call fcn.004037bc
push eax
push 0x21
push dword [ebp - 0x24c8]
call ebx
test eax, eax
je 0x403686
push 0xffffffffffffffff
lea ecx, [edi + 0x18]
call fcn.004037f1
jmp 0x403686
cmp eax, 0x197
jne 0x403734
cmp dword [ebp - 0x24d4], esi
jne 0x403734
mov eax, dword [edi + 0x10]
mov ecx, dword [eax - 8]
cmp ecx, esi
je 0x403720
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2b
push dword [ebp - 0x24c8]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [edi + 0x14]
mov ecx, dword [eax - 8]
cmp ecx, esi
je 0x403787
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2c
jmp 0x40377b
cmp eax, 0x191
jne 0x403686
cmp dword [ebp - 0x24d4], esi
jne 0x403686
mov eax, dword [edi + 0x10]
mov ecx, dword [eax - 8]
cmp ecx, esi
je 0x403769
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x1c
push dword [ebp - 0x24c8]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [edi + 0x14]
mov ecx, dword [eax - 8]
cmp ecx, esi
je 0x403787
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x1d
push dword [ebp - 0x24c8]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [ebp - 0x24d4], 1
jmp 0x403580
lea eax, [ebp - 0x249c]
push eax
lea ecx, [edi + 0x1c]
call fcn.00403820
mov eax, dword [ebp - 0x24c8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x14