Function at 0x41e510
Capabilities:
Connect to http server
Create http request
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
lea eax, [ecx + 0x61800]
xor ebx, ebx
push esi
cmp word [eax], bx
push edi
mov dword [ebp - 4], ecx
je 0x41e533
mov ebx, eax
jmp 0x41e5e4
cmp word [0x5701dc], 0
jne 0x41e5df
mov al, byte [0x56f5c4]
mov ecx, 0x208
mov byte [ebp - 0x838], al
xor eax, eax
lea edi, [ebp - 0x837]
lea edx, [ebp - 0x838]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0x823
stosw word es:[edi], ax
push ecx
push edx
push 0
stosb byte es:[edi], al
call sub.urlmon.dll_ObtainUserAgentString
test eax, eax
jne 0x41e5d5
lea eax, [ebp - 0x838]
test eax, eax
jne 0x41e589
xor edi, edi
jmp 0x41e5c2
lea ecx, [ebp - 0x838]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004d0e10
mov edi, esp
push esi
push edi
lea edx, [ebp - 0x838]
push 0xffffffffffffffff
push edx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x824
push 0x5701dc
push edi
call fcn.0048e6f0
add esp, 0xc
cmp word [0x5701dc], 0
je 0x41e5e4
mov ebx, 0x5701dc
push 0x10000000
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, dword [ebp + 8]
test eax, eax
mov dword [esi + 0x14], eax
je 0x41e776
mov eax, dword [esi + 0x20]
xor ebx, ebx
add eax, 0x2348
xor edi, edi
push eax
mov dword [ebp + 8], 3
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x41e62e
mov ebx, dword [esi + 0x20]
add ebx, 0x2348
mov ecx, dword [esi + 0x20]
add ecx, 0x2048
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x41e64e
mov edi, dword [esi + 0x20]
add edi, 0x2048
test ebx, ebx
jne 0x41e672
mov edx, dword [ebp - 4]
lea eax, [edx + 0x605b8]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x41e672
mov eax, dword [ebp - 4]
lea ebx, [eax + 0x605b8]
test edi, edi
jne 0x41e696
mov ecx, dword [ebp - 4]
lea eax, [ecx + 0x606b8]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x41e696
mov edx, dword [ebp - 4]
lea edi, [edx + 0x606b8]
mov ecx, dword [esi + 0x20]
mov eax, 1
cmp dword [ecx + 4], eax
jne 0x41e6a6
mov dword [ebp + 8], eax
mov edx, dword [esi + 0x14]
push 0x41c660
push edx
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x20]
push esi
add eax, 0x2148
mov edx, dword [ecx + 0x26d4]
mov ecx, dword [ebp + 8]
push edx
mov dx, word [eax - 0x2148]
push ecx
push edi
push ebx
push edx
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 0x18], eax
je 0x41e776
mov ecx, dword [ebp - 4]
lea ebx, [ecx + 0x607b8]
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x41e762
test ebx, ebx
mov dword [ebp - 0x14], 3
jne 0x41e713
mov dword [ebp - 0x10], ebx
jmp 0x41e749
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp + 8], eax
add eax, 3
and al, 0xfc
call fcn.004d0e10
mov edx, dword [ebp + 8]
mov edi, esp
push 0
push 0
push edx
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x10], edi
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x14]
push 0xc
push eax
push 0x26
push ecx
mov dword [ebp - 0xc], 0x56f5c4
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov eax, 1
lea esp, [ebp - 0x844]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea esp, [ebp - 0x844]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4