Function at 0x41dd0e
Capabilities:
Check http status code
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0xc8
mov eax, 0x43ab78
call fcn.00427d33
mov esi, ecx
mov eax, dword [ebp + 0xc]
and dword [esi + 0x90], 0
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x80], al
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xa4], eax
lea eax, [esi + 0x94]
and dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x41dd5c
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
xor eax, eax
and dword [esi + 0xac], edx
and dword [ebp - 0x68], 0
push 7
pop edx
mov dword [ebp - 0x64], edx
mov word [ebp - 0x78], ax
and dword [ebp - 4], eax
and dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x85]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.0041d8c8
test al, al
je 0x41e20c
lea ecx, [esi + 0x7c]
call fcn.00406562
test al, al
jne 0x41e20c
push 0
mov ecx, esi
call fcn.0041dc5a
test al, al
je 0x41e203
movzx edx, byte [ebp - 0x85]
lea ecx, [ebp - 0x78]
xor eax, eax
mov dword [ebp - 0x90], 0x1bb
cmp byte [esi], al
push eax
push eax
push 3
push eax
cmovne edx, eax
cmp dword [ebp - 0x64], 8
push eax
cmovae ecx, dword [ebp - 0x78]
test dl, dl
push 0x50
pop eax
cmovne eax, dword [ebp - 0x90]
movzx eax, ax
push eax
push ecx
push dword [esi + 0xb0]
mov dword [ebp - 0x8c], edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x90], eax
test eax, eax
je 0x41e1fa
lea ecx, [esi + 0x4c]
cmp dword [ecx + 0x14], 8
jb 0x41de2b
mov ecx, dword [ecx]
push dword [ebp - 0x80]
and dword [ebp - 0x18], 0
lea eax, [ebp - 0xd4]
push eax
mov dword [ebp - 0x1c], ecx
call fcn.0041db7c
lea edx, [esi + 0x64]
mov ecx, eax
cmp dword [edx + 0x14], 8
jb 0x41de4e
mov edx, dword [edx]
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0x20], eax
jb 0x41de64
mov ecx, dword [ecx]
xor eax, eax
mov dword [ebp - 0x80], 0x800000
cmp byte [ebp - 0x8c], al
push 0
cmovne eax, dword [ebp - 0x80]
or eax, 0x8404f700
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push edx
push dword [ebp - 0x20]
push ecx
push dword [ebp - 0x90]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
push 0
push 1
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x84], eax
call fcn.004017dc
mov edx, dword [ebp - 0x84]
test edx, edx
je 0x41e1de
test edi, edi
je 0x41dec2
mov ecx, dword [edi + 0x10]
jmp 0x41dec4
xor ecx, ecx
test edi, edi
je 0x41ded2
cmp dword [edi + 0x14], 0x10
jb 0x41ded4
mov edi, dword [edi]
jmp 0x41ded4
xor edi, edi
cmp byte [ebp - 0x7c], 1
jne 0x41dee7
lea eax, [esi + 0x34]
cmp dword [eax + 0x14], 8
jb 0x41dee9
mov eax, dword [eax]
jmp 0x41dee9
xor eax, eax
push ecx
push edi
push dword [esi + 0x44]
push eax
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x41e1c2
xor edi, edi
mov dword [ebp - 0x48], 4
push edi
lea ecx, [ebp - 0x48]
push ecx
lea eax, [esi + 0xac]
push eax
push 0x20000013
push dword [ebp - 0x84]
mov dword [eax], edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x41e1ba
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
xor ecx, ecx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
push ecx
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 2
push eax
push ecx
push 0x15
push dword [ebp - 0x84]
mov dword [ebp - 0x7c], ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x41e04b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
je 0x41e04b
push dword [ebp - 0x7c]
call fcn.00424c0b
mov edi, eax
pop ecx
test edi, edi
je 0x41e047
push 0
lea eax, [ebp - 0x7c]
push eax
push edi
push 0x15
push dword [ebp - 0x84]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x41e00b
cmp dword [ebp - 0x7c], 0
jbe 0x41e019
push dword [ebp - 0x7c]
and dword [ebp - 0x34], 0
lea ecx, [ebp - 0x44]
push edi
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.00401683
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x30], 0x10
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
cmovae ecx, dword [ebp - 0x44]
add eax, ecx
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
push eax
push ecx
call fcn.0041e6f5
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.004016fc
jmp 0x41e019
push 0
push str.HttpQueryInfo__HTTP_QUERY_RAW_HEADERS
mov ecx, esi
call fcn.0041d7f8
push edi
call fcn.00424a66
pop ecx
lea edx, [ebp - 0x9c]
lea ecx, [ebp - 0x2c]
call fcn.0041e2ce
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x41e059
push dword [ebp - 0x28]
mov ecx, eax
push dword [ebp - 0x2c]
call fcn.0041e7aa
jmp 0x41e059
push 8
jmp 0x41e04d
push 0
push str.HttpQueryInfo__HTTP_QUERY_RAW_HEADERS
mov ecx, esi
call fcn.0041d7f8
test ebx, ebx
je 0x41e1ac
cmp dword [esi + 0x90], 0
jne 0x41e1ac
lea ecx, [esi + 0x7c]
call fcn.00406562
test al, al
jne 0x41e1ac
mov eax, dword [ebp - 0x9c]
mov edi, dword [ebp - 0x98]
and dword [ebp - 0x20], 0
push 0x10000
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edi
call fcn.00424c0b
mov dword [ebp - 0x80], eax
pop ecx
test eax, eax
je 0x41e1ac
lea ecx, [ebp - 0x20]
push ecx
push 0x10000
push eax
jmp 0x41e110
cmp dword [ebp - 0x20], 0
jbe 0x41e16b
lea ecx, [esi + 0x7c]
call fcn.00406562
test al, al
jne 0x41e165
push dword [ebp - 0x20]
mov ecx, ebx
push dword [ebp - 0x80]
call fcn.0041eb72
test al, al
je 0x41e128
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x41e100
push dword [ebp + 0x1c]
push 0
push dword [ebx + 0x14]
push edi
push dword [ebp - 0x9c]
call eax
test al, al
jne 0x41e165
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push 0x10000
push dword [ebp - 0x80]
push dword [ebp - 0x84]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x8c], eax
test eax, eax
jne 0x41e0b6
jmp 0x41e16b
mov eax, dword [ebx + 0x44]
lea ecx, [ebx + 0x40]
mov dword [esi + 0x90], eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040ea88
lea ecx, [esi + 0x94]
mov byte [ebp - 4], 4
cmp ecx, eax
je 0x41e155
push 0xffffffffffffffff
push 0
push eax
call fcn.00401b92
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.004017dc
mov eax, dword [ebp - 0x8c]
xor edx, edx
cmp dword [esi + 0x90], edx
jne 0x41e1a3
test eax, eax
jne 0x41e181
push edx
push 0x445910
jmp 0x41e19c
mov ecx, dword [ebp - 0x9c]
mov eax, ecx
or eax, edi
je 0x41e1a3
cmp ecx, dword [ebx + 0x14]
jne 0x41e196
cmp edi, edx
je 0x41e1a3
push edx
push str.Data_partially_received
mov ecx, esi
call fcn.0041d7f8
push dword [ebp - 0x80]
call fcn.00424a66
pop ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00411b86
jmp 0x41e1d0
push edi
push str.HttpQueryInfo__HTTP_QUERY_STATUS_CODE
jmp 0x41e1c9
push 0
push str.HttpSendRequest
mov ecx, esi
call fcn.0041d7f8
push dword [ebp - 0x84]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x41e1ec
push 0
push str.HttpOpenRequest
mov ecx, esi
call fcn.0041d7f8
push dword [ebp - 0x90]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x41e21d
push 0
push str.InternetConnect
jmp 0x41e216
push 0
push str.OpenInternet
jmp 0x41e216
push 0x2ee5
push str.BadUrl
mov ecx, esi
call fcn.0041d7f8
test ebx, ebx
je 0x41e23a
cmp byte [ebx + 0xc], 2
jne 0x41e23a
cmp dword [ebx + 0x10], 0xffffffff
je 0x41e23a
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx + 0x10], 0xffffffff
lea ecx, [esi + 0x7c]
call fcn.00406562
test al, al
je 0x41e291
and dword [esi + 0xac], 0
lea ecx, [ebp - 0xbc]
or dword [esi + 0x90], 0xffffffff
push str.stopped
call fcn.00401590
lea ecx, [esi + 0x94]
mov byte [ebp - 4], 5
lea eax, [ebp - 0xbc]
cmp ecx, eax
je 0x41e282
push 0xffffffffffffffff
push 0
push eax
call fcn.00401b92
push 0
push 1
lea ecx, [ebp - 0xbc]
call fcn.004017dc
cmp dword [esi + 0x90], 0
jne 0x41e2aa
cmp dword [esi + 0xac], 0xc8
jne 0x41e2aa
mov bl, 1
jmp 0x41e2ac
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x60]
call fcn.004017dc
push 0
push 1
lea ecx, [ebp - 0x78]
call fcn.004017dc
mov al, bl
call fcn.00427ce2
ret 0x1c