Function at 0x428c40
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x437388]
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionA]
push esi
mov esi, ecx
mov dword [esp + 0x128], eax
mov eax, dword [esi + 4]
test eax, eax
push edi
mov dword [esp + 0x10], 0x7530
jne 0x428d47
mov eax, dword [esi + 0x34]
test eax, eax
mov eax, dword [esi + 0x10]
push 0
je 0x428c90
push 0x431c90
push 0x431c88
push 3
jmp 0x428c98
mov ecx, dword [esi + 0x58]
push 0
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 4], eax
jne 0x428cc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x54], eax
xor eax, eax
mov ecx, dword [esp + 0x12c]
call fcn.0041e6b7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
mov dword [esp + 0x14], edx
xor eax, eax
mov dword [esp + 0x18], edx
mov byte [esp + 0x20], dl
mov ecx, 0x40
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x34]
test eax, eax
mov dword [esp + 0x1c], edx
je 0x428d30
movzx eax, word [esi + 0x30]
mov ecx, dword [esi + 0x2c]
push eax
push ecx
lea edx, [esp + 0x28]
push 0x431c80
push edx
mov dword [esp + 0x24], 3
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esi + 4]
add esp, 0x10
push 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x26
lea eax, [esp + 0x2c]
push edx
mov dword [esp + 0x28], eax
call ebx
test eax, eax
je 0x428dfb
mov ecx, dword [esi + 4]
push 4
lea eax, [esp + 0x14]
push eax
push 2
push ecx
call ebx
test eax, eax
je 0x428dfb
mov eax, dword [esi + 8]
test eax, eax
jne 0x428e20
mov eax, dword [esi + 0x1c]
test eax, eax
push 0
push 0
push 3
jne 0x428d74
mov eax, dword [esi + 0x14]
xor edx, edx
mov dx, word [esi + 0x18]
push 0
push 0
push edx
push eax
mov eax, dword [esi + 4]
push eax
jmp 0x428d8b
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x14]
push eax
push ecx
xor ecx, ecx
mov cx, word [esi + 0x18]
push ecx
push edx
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 8], eax
je 0x428dfb
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x428dfb
mov ecx, dword [esi + 8]
push 4
lea eax, [esp + 0x14]
push eax
push 5
push ecx
call ebx
test eax, eax
je 0x428dfb
mov eax, dword [esi + 8]
push 4
lea edx, [esp + 0x14]
push edx
push 6
push eax
call ebx
test eax, eax
je 0x428dfb
mov eax, dword [esi + 0x38]
test eax, eax
je 0x428e20
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
mov ecx, dword [esi + 8]
push eax
push 0x2b
push ecx
call ebx
test eax, eax
je 0x428dfb
mov eax, dword [esi + 0x40]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi + 8]
inc ecx
push ecx
push eax
push 0x2c
push edx
call ebx
test eax, eax
jne 0x428e20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00428b90
xor eax, eax
mov ecx, dword [esp + 0x12c]
call fcn.0041e6b7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
mov eax, 1
call fcn.0041e6b7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret