Function at 0x4020ed
Capabilities:
Connect to http server
Create http request
Parse url

Disassembly:
push 0x9c
mov eax, 0x421700
call fcn.00420c5e
mov ebx, ecx
mov dword [ebp - 0xa8], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa4], eax
call fcn.00402037
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push 0x3c
xor esi, esi
mov dword [ebx + 0x98], eax
lea edi, [ebx + 0x14]
mov dword [ebx + 0x9c], edx
push esi
push edi
call fcn.0040a490
push 1
push 0x20
mov dword [edi], 0x3c
pop edi
push edi
call fcn.0040c4a1
mov dword [ebx + 0x1c], edi
xor edi, edi
inc edi
mov dword [ebx + 0x18], eax
push edi
push pe_nt_image_headers32
call fcn.0040c4a1
push edi
push 0x800
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], pe_nt_image_headers32
call fcn.0040c4a1
mov dword [ebx + 0x40], eax
mov eax, 0x800
push edi
push eax
mov dword [ebx + 0x44], eax
call fcn.0040c4a1
push edi
push 0x80
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], 0x800
call fcn.0040c4a1
mov dword [ebx + 0x30], eax
lea eax, [edi + 0x7f]
push edi
push eax
mov dword [ebx + 0x34], eax
call fcn.0040c4a1
add esp, 0x3c
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0x80
cmp dword [ebx + 0x24], esi
jne 0x4021c5
push 0x12
mov ecx, ebx
call fcn.00402871
xor eax, eax
jmp 0x4023b4
push 0x84
lea eax, [ebp - 0x9c]
push esi
push eax
call fcn.0040a490
add esp, 8
lea eax, [ebp - 0x98]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], eax
push dword [ebp - 0xa4]
call fcn.004028ed
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
call fcn.00401c4d
push eax
lea ecx, [ebp - 0x14]
call fcn.004019ac
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], esi
call fcn.00401c4d
push eax
lea ecx, [ebp - 0x18]
call fcn.004019ac
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x9c]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0xa4], eax
mov cl, byte [eax]
mov byte [ebp - 0x9d], cl
test cl, cl
je 0x4022af
lea eax, [ecx - 0x20]
cmp al, 0x5f
ja 0x40226c
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov edi, dword [eax - 0xc]
lea ebx, [edi + 1]
push ebx
call fcn.004029ee
mov cl, byte [ebp - 0x9d]
push ebx
mov byte [eax + edi], cl
lea ecx, [ebp - 0x14]
call fcn.004029c5
jmp 0x402290
movzx eax, cl
push eax
lea eax, [ebp - 0x18]
push str.___02X
push eax
call fcn.00402c5f
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
add esp, 0xc
push dword [esi - 0xc]
push esi
call fcn.00402a2a
mov edx, dword [ebp - 0xa4]
inc edx
mov dword [ebp - 0xa4], edx
mov cl, byte [edx]
mov byte [ebp - 0x9d], cl
test cl, cl
jne 0x40223f
mov ebx, dword [ebp - 0xa8]
mov edi, dword [ebp - 0x14]
lea eax, [ebx + 0x14]
push eax
push 0
push dword [edi - 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x4022cc
inc eax
jmp 0x402379
xor eax, eax
mov ecx, 0x84400300
mov dword [ebx + 0x50], ecx
cmp dword [ebx + 0x68], eax
je 0x4022e3
mov ecx, 0x84600300
mov dword [ebx + 0x50], ecx
cmp dword [ebx + 0x20], 4
jne 0x4022f2
or ecx, 0x800000
mov dword [ebx + 0x50], ecx
push eax
push eax
push eax
push eax
push dword [ebx + 0x54]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, eax
mov dword [ebx + 8], ecx
test ecx, ecx
jne 0x40230c
push 2
jmp 0x402378
push 4
lea eax, [ebx + 0x58]
push eax
push 2
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebx + 0x5c]
push eax
push 6
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebx + 0x60]
push eax
push 3
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ecx, [ebx + 0x64]
xor eax, eax
cmp dword [ecx], eax
je 0x402354
push 4
push ecx
push 0x49
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
xor eax, eax
push eax
push eax
movzx eax, word [ebx + 0x2c]
push 3
push dword [ebx + 0x38]
push dword [ebx + 0x30]
push eax
push dword [ebx + 0x24]
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x402385
push 3
pop eax
push eax
mov ecx, ebx
call fcn.00402871
xor ebx, ebx
jmp 0x402388
xor ebx, ebx
inc ebx
lea ecx, [esi - 0x10]
call fcn.004013a9
lea ecx, [edi - 0x10]
call fcn.004013a9
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x9c], eax
je 0x4023b2
push dword [ebp - 0x9c]
call fcn.0040c3c0
pop ecx
mov eax, ebx
call fcn.00420c08
ret 4