Function at 0x41a55a
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
lea ebp, [esp - 0x7c0]
sub esp, 0x840
mov eax, dword [0x4dbc40]
xor eax, ebp
mov dword [ebp + 0x7bc], eax
and dword [ebp - 0x6c], 0
push esi
push edi
mov edi, ecx
lea eax, [edi + 0x61a80]
xor ecx, ecx
mov dword [ebp - 0x74], edi
cmp cx, word [eax]
je 0x41a595
mov dword [ebp - 0x6c], eax
jmp 0x41a6b7
xor eax, eax
cmp ax, word [0x4f7570]
jne 0x41a6b0
mov esi, 0x823
push esi
push eax
mov byte [ebp - 0x68], al
lea eax, [ebp - 0x67]
push eax
call fcn.0048e0e0
add esp, 0xc
test byte [0x5039b8], 1
mov dword [ebp - 0x70], esi
jne 0x41a5e3
or dword [0x5039b8], 1
push str.ObtainUserAgentString
push 0x4c63d0
call fcn.00420b6b
pop ecx
pop ecx
mov dword [0x5039b4], eax
mov eax, dword [0x5039b4]
test eax, eax
je 0x41a5fa
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push 0
call eax
jmp 0x41a5fd
xor eax, eax
inc eax
test eax, eax
jne 0x41a6a5
mov edi, 0x503158
cmp ax, word [0x503158]
jne 0x41a65e
cmp word [0x572af0], ax
je 0x41a641
push 0x572af0
push 0x888
call fcn.00420320
pop ecx
push eax
push str._s___s
mov ecx, 0x104
call fcn.0040243c
add esp, 0xc
jmp 0x41a65e
push 0x888
call fcn.00420320
mov ecx, 0x104
mov edx, edi
mov dword [esp], 0x7ffffffe
call fcn.00402562
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x41a677
xor eax, eax
jmp 0x41a68f
lea eax, [esi + esi]
call fcn.004905f0
mov eax, esp
push 0
push esi
lea ecx, [ebp - 0x68]
push ecx
mov esi, eax
call fcn.00405656
push edi
mov ecx, 0x824
mov edx, 0x4f7570
mov esi, eax
call fcn.00420a8a
mov edi, dword [ebp - 0x74]
pop ecx
xor eax, eax
cmp ax, word [0x4f7570]
je 0x41a6b7
mov dword [ebp - 0x6c], 0x4f7570
push 0x10000000
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x74], ecx
mov dword [ebx + 0x14], ecx
cmp ecx, eax
je 0x41a7d1
mov edx, dword [ebx + 0x20]
lea ecx, [edx + 0x2348]
xor esi, esi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], 3
cmp word [ecx], ax
je 0x41a6f9
mov dword [ebp - 0x6c], ecx
lea ecx, [edx + 0x2048]
cmp word [ecx], ax
je 0x41a706
mov esi, ecx
cmp dword [ebp - 0x6c], eax
jne 0x41a719
lea ecx, [edi + 0x60630]
cmp word [ecx], ax
je 0x41a719
mov dword [ebp - 0x6c], ecx
cmp esi, eax
jne 0x41a72a
lea ecx, [edi + 0x60730]
cmp word [ecx], ax
je 0x41a72a
mov esi, ecx
xor eax, eax
inc eax
cmp dword [edx + 4], eax
jne 0x41a735
mov dword [ebp - 0x70], eax
push 0x418680
push dword [ebp - 0x74]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov eax, dword [ebx + 0x20]
movzx ecx, word [eax]
push ebx
push dword [edi + 0x26e8]
add eax, 0x2148
push dword [ebp - 0x70]
push esi
push dword [ebp - 0x6c]
push ecx
push eax
push dword [ebx + 0x14]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebx + 0x18], eax
test eax, eax
je 0x41a7d1
lea esi, [edi + 0x60a38]
xor edi, edi
cmp word [esi], di
je 0x41a7cc
mov dword [ebp - 0x80], 3
cmp esi, edi
je 0x41a795
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41a79a
mov dword [ebp - 0x7c], edi
jmp 0x41a7b4
lea edi, [eax + eax]
mov eax, edi
call fcn.004905f0
mov eax, esp
push 0
push edi
push esi
mov esi, eax
call fcn.00405689
mov dword [ebp - 0x7c], eax
push 0xc
lea eax, [ebp - 0x80]
push eax
push 0x26
push dword [ebx + 0x14]
mov dword [ebp - 0x78], 0x4c42ec
call dword [sym.imp.WININET.dll_InternetSetOptionA]
xor eax, eax
inc eax
jmp 0x41a7d3
xor eax, eax
lea esp, [ebp - 0x88]
pop edi
pop esi
mov ecx, dword [ebp + 0x7bc]
xor ecx, ebp
call fcn.00488e60
add ebp, 0x7c0
leave
ret