Function at 0x401d50
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
mov eax, 0x8034
call fcn.00402770
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x8030], eax
mov eax, dword [esp + 0x803c]
push ebx
mov ebx, dword [esp + 0x803c]
mov dword [esp + 8], eax
test ebx, ebx
je 0x401fed
test eax, eax
je 0x401fed
cmp dword [esp + 0x8044], 0
je 0x401fed
push ebp
push edi
push 0x7fff
lea eax, [esp + 0x41]
push 0
push eax
mov byte [esp + 0x1b], 0
mov byte [esp + 0x48], 0
call fcn.004027a0
add esp, 0xc
push 0x10000000
xor edi, edi
push edi
push edi
push 4
push str.Mozilla_5.0__Windows__U__Windows_NT_6.1__en_US_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
test ebp, ebp
je 0x401ded
push 0x4013f0
push ebp
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp eax, 0xffffffff
jne 0x401e07
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x8030]
xor ecx, esp
call fcn.00402673
add esp, 0x8034
ret
push esi
push 0xc
call fcn.004028f7
mov esi, eax
add esp, 4
test esi, esi
jne 0x401e3a
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8030]
xor ecx, esp
call fcn.00402673
add esp, 0x8034
ret
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 4], eax
test eax, eax
je 0x401e84
push esi
push 0x80802000
push 0
push 0
push ebx
push ebp
mov dword [esi + 8], 1
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [esi], eax
test eax, eax
jne 0x401eaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x401e96
push 0
push ebp
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call fcn.0040281a
add esp, 4
jmp 0x401e1f
mov ecx, dword [esi + 4]
push 0x7530
push ecx
call fcn.00401470
add esp, 8
test al, al
je 0x401f91
mov ebx, dword [sym.imp.WININET.dll_InternetReadFileExA]
mov dword [esi + 8], 2
mov byte [0x40f05c], 0
cmp edi, 0x8000
jae 0x401f91
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
push esi
mov eax, 0x7fff
lea edx, [esp + edi + 0x44]
sub eax, edi
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0x28
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov edx, dword [esi]
push ecx
push edx
call ebx
test eax, eax
jne 0x401f47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x401f91
mov eax, dword [esi + 4]
push 0x1d4c0
push eax
call fcn.00401470
add esp, 8
test al, al
je 0x401f91
mov eax, dword [esp + 0x30]
test eax, eax
jbe 0x401f83
mov ecx, dword [esp + 0x8050]
mov edx, dword [esp + 0x14]
push ecx
add edi, eax
push edx
lea eax, [esp + 0x48]
push edi
push eax
mov byte [esp + edi + 0x50], 0
call fcn.00401b30
add esp, 0x10
test al, al
jne 0x401f8c
cmp byte [0x40f05c], al
je 0x401ec3
jmp 0x401f91
mov byte [0x40f05c], 1
jmp 0x401f91
mov byte [esp + 0x13], 1
cmp dword [esi], 0
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x401fc1
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [esi]
push edx
mov dword [esi + 8], 3
call edi
mov eax, dword [esi + 4]
push 0x7530
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 4]
test eax, eax
je 0x401fcf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0040281a
add esp, 4
push 0
push ebp
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
push ebp
call edi
mov al, byte [esp + 0x13]
jmp 0x401e21
mov ecx, dword [esp + 0x8034]
pop ebx
xor ecx, esp
xor al, al
call fcn.00402673
add esp, 0x8034
ret