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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
mov eax, dword [0x4297c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
mov dword [ebp - 0x83c], eax
push edi
add eax, 0x61870
xor ecx, ecx
xor edi, edi
cmp cx, word [eax]
je 0x402656
mov edi, eax
jmp 0x4026fc
xor edx, edx
cmp dx, word [0x42aa40]
jne 0x4026f7
push 0x823
push edx
lea eax, [ebp - 0x827]
push eax
mov byte [ebp - 0x828], cl
call fcn.004123b0
add esp, 0xc
lea ecx, [ebp - 0x82c]
push ecx
lea edx, [ebp - 0x828]
push edx
push 0
mov dword [ebp - 0x82c], 0x823
call sub.urlmon.dll_ObtainUserAgentString
test eax, eax
jne 0x4026ec
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x4026bf
xor eax, eax
jmp 0x4026d9
lea eax, [esi + esi]
call fcn.00413280
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x828]
push ecx
push eax
call fcn.00401160
push 0x824
push 0x42aa40
push eax
call fcn.00411cc0
add esp, 0xc
xor edx, edx
cmp dx, word [0x42aa40]
je 0x4026fc
mov edi, 0x42aa40
push 0x10000000
xor esi, esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x840], eax
mov dword [ebx + 0x14], eax
cmp eax, esi
je 0x4028d0
mov edx, dword [ebx + 0x20]
add edx, 0x2348
mov ecx, edx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x830], esi
mov dword [ebp - 0x82c], 3
lea edi, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x402742
sub ecx, edi
sar ecx, 1
je 0x402759
mov dword [ebp - 0x838], edx
mov esi, dword [ebx + 0x20]
add esi, 0x2048
mov ecx, esi
lea eax, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x402767
sub ecx, eax
sar ecx, 1
je 0x40277e
mov dword [ebp - 0x830], esi
cmp dword [ebp - 0x838], 0
mov edi, dword [ebp - 0x83c]
jne 0x4027b7
lea esi, [edi + 0x60628]
mov ecx, esi
lea eax, [ecx + 2]
jmp 0x4027a0
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4027a0
sub ecx, eax
sar ecx, 1
je 0x4027b7
mov dword [ebp - 0x838], esi
cmp dword [ebp - 0x830], 0
jne 0x4027e7
lea esi, [edi + 0x60728]
mov ecx, esi
lea eax, [ecx + 2]
jmp 0x4027d0
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4027d0
sub ecx, eax
sar ecx, 1
je 0x4027e7
mov dword [ebp - 0x830], esi
mov ecx, dword [ebx + 0x20]
mov eax, 1
cmp dword [ecx + 4], eax
jne 0x4027fa
mov dword [ebp - 0x82c], eax
mov eax, dword [ebp - 0x840]
push 0x402090
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov ecx, dword [edi + 0x26e0]
mov edx, dword [ebp - 0x82c]
mov eax, dword [ebx + 0x20]
push ebx
push ecx
mov ecx, dword [ebp - 0x830]
push edx
mov edx, dword [ebp - 0x838]
push ecx
movzx ecx, word [eax]
push edx
mov edx, dword [ebx + 0x14]
push ecx
add eax, 0x2148
push eax
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebx + 0x18], eax
test eax, eax
je 0x4028d0
add edi, 0x60828
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402856
sub eax, edx
sar eax, 1
je 0x4028c9
xor esi, esi
mov dword [ebp - 0x84c], 3
cmp edi, esi
je 0x402886
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x40288e
mov dword [ebp - 0x848], esi
jmp 0x4028aa
lea esi, [eax + eax]
mov eax, esi
call fcn.00413280
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.004011a0
mov dword [ebp - 0x848], eax
mov ecx, dword [ebx + 0x14]
push 0xc
lea eax, [ebp - 0x84c]
push eax
push 0x26
push ecx
mov dword [ebp - 0x844], 0x422750
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov eax, 1
jmp 0x4028d2
xor eax, eax
lea esp, [ebp - 0x858]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004125d9
mov esp, ebp
pop ebp
ret 4