Function at 0x40fb26
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0x484
push 0x420a80
call fcn.00411b38
mov dword [ebp - 0x44], 4
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebx
test eax, eax
je 0x40ff13
push dword [ebp + 8]
call fcn.0040c0f5
pop ecx
test eax, eax
je 0x40ff13
xor esi, esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x40], 0x80004005
mov dword [ebp - 4], esi
push esi
push esi
push esi
push esi
push 0x4209f4
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x38], eax
cmp eax, esi
je 0x40fed8
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x8c]
rep stosd dword es:[edi], eax
push 0x3c
pop edi
mov dword [ebp - 0x8c], edi
lea eax, [ebp - 0x294]
mov dword [ebp - 0x7c], eax
mov eax, pe_nt_image_headers32
mov dword [ebp - 0x78], eax
mov word [ebp - 0x74], si
lea ecx, [ebp - 0x394]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x494]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x8c]
push eax
push esi
push dword [ebp + 8]
call ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push esi
push esi
push 3
push 0x4209fc
push 0x4209fd
push dword [ebp - 0x74]
push dword [ebp - 0x7c]
push dword [ebp - 0x38]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x30], eax
cmp eax, esi
je 0x40fed8
lea eax, [ebp - 0x194]
cmp dword [ebp - 0x5c], esi
je 0x40fc21
push dword [ebp - 0x60]
jmp 0x40fc26
push 0x420a00
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x54], esi
je 0x40fc42
push dword [ebp - 0x58]
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x24], esi
push esi
push 0x4400000
push esi
push 0x420a02
push str.HTTP_1.1
lea eax, [ebp - 0x194]
push eax
push 0x420a10
push dword [ebp - 0x30]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40fed8
xor edi, edi
inc edi
mov dword [ebp - 0x1c], edi
push esi
push esi
push esi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40fcf5
cmp dword [ebp - 0x1c], esi
je 0x40fed8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x94], eax
mov ecx, eax
sub ecx, 0x2ee2
je 0x40fcdf
sub ecx, 5
je 0x40fcdf
sub ecx, 0x16
je 0x40fcdf
mov dword [ebp - 0x1c], esi
push esi
push 7
push eax
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
jne 0x40fc85
jmp 0x40fc82
mov dword [ebp - 0x1c], esi
cmp dword [ebp + 0x14], esi
je 0x40fc85
push esi
push esi
push eax
push esi
call fcn.0040f97c
add esp, 0x10
jmp 0x40fc85
cmp dword [ebp - 0x1c], esi
je 0x40fed8
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x2c], esi
push esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x20000013
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x40fd2d
call ebx
mov dword [ebp - 0x4c], eax
xor ebx, ebx
inc ebx
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebp - 0x2c]
cmp edx, 0x197
jne 0x40fd8c
cmp dword [ebp - 0x1c], esi
je 0x40fd8c
push esi
push 7
push dword [ebp - 0x4c]
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
je 0x40fd63
mov dword [ebp - 0x1c], esi
jmp 0x40fd33
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x44], 4
push esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
jmp 0x40fd33
cmp edx, 0xc8
jne 0x40fddb
mov dword [ebp - 0x3c], esi
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp + 0xc]
add eax, ebx
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp + 0x10]
sub ecx, ebx
push ecx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40fdc6
add ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x50], ebx
cmp dword [ebp - 0x3c], esi
ja 0x40fd9c
cmp ebx, esi
jbe 0x40fecf
mov dword [ebp - 0x40], esi
jmp 0x40fecf
cmp edx, 0x190
jb 0x40feb4
cmp edx, 0x258
jae 0x40feb4
mov eax, 0x193
cmp edx, eax
je 0x40fe84
add eax, 0x61
cmp edx, eax
jne 0x40fe25
cmp dword [ebp + 0x14], esi
je 0x40fe98
push ebx
push esi
push eax
push esi
call fcn.0040f97c
add esp, 0x10
test eax, eax
je 0x40fe98
mov dword [ebp - 0x24], ebx
jmp 0x40fe98
mov ecx, 0x1f7
cmp edx, ecx
jne 0x40fe7c
cmp dword [ebp - 0x28], 5
jge 0x40fe58
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], esi
jl 0x40fe4f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 0x48]
jmp 0x40fe3a
inc dword [ebp - 0x28]
add dword [ebp - 0x34], 0x1e
jmp 0x40fe77
cmp dword [ebp + 0x14], esi
je 0x40fe98
push ebx
push esi
push ecx
push esi
call fcn.0040f97c
add esp, 0x10
test eax, eax
je 0x40fe98
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x34], 0x3c
mov dword [ebp - 0x24], ebx
jmp 0x40fecf
cmp edx, 0x194
je 0x40fe98
xor ecx, ecx
cmp dword [ebp + 0x14], esi
sete cl
push esi
push ecx
push eax
push esi
call fcn.0040f97c
add esp, 0x10
xor eax, eax
cmp dword [ebp - 0x2c], 0x194
setne al
dec eax
and eax, 0x6c1fd
add eax, 0x80004005
mov dword [ebp - 0x40], eax
jmp 0x40fecf
push esi
xor eax, eax
cmp dword [ebp + 0x14], esi
sete al
push eax
push edx
push esi
call fcn.0040f97c
add esp, 0x10
mov dword [ebp - 0x40], 0x80004005
cmp dword [ebp - 0x24], esi
jne 0x40fc4b
or dword [ebp - 4], 0xffffffff
call fcn.0040fee8
mov eax, dword [ebp - 0x40]
jmp 0x40ff15
xor eax, eax
call fcn.00411b73
ret