Function at 0x41b020
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cac2
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x45604c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov ecx, dword [edi + 0x10]
test ecx, ecx
jne 0x41b068
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x1c], 0
call fcn.00410880
cmp dword [eax + 0x14], 8
jb 0x41b080
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x41b2f3
push 0x30
call fcn.00421b46
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x41b0ef
mov ecx, dword [edi + 0x10]
call fcn.0040e440
mov ecx, dword [ebp - 0x20]
mov bl, al
mov esi, dword [edi + 8]
and ebx, 0xffffff01
mov edi, dword [edi + 4]
mov ecx, dword [ecx + 0x10]
call fcn.00410860
push eax
call fcn.00416520
mov ecx, dword [ebp - 0x24]
push eax
push ebx
push esi
push edi
call fcn.00417d30
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
jmp 0x41b0f1
xor eax, eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x41b105
mov ecx, dword [edi + 0x14]
push eax
call fcn.00417640
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [ebp - 0x18]
push 4
push eax
push 2
push ebx
mov dword [ebp - 0x18], 0xbb8
call esi
push 4
lea eax, [ebp - 0x18]
push eax
push 5
push ebx
call esi
push 4
lea eax, [ebp - 0x18]
push eax
push 6
push ebx
call esi
push 4
lea eax, [ebp - 0x18]
push eax
push 7
push ebx
call esi
push 4
lea eax, [ebp - 0x18]
push eax
push 8
push ebx
call esi
mov ecx, dword [edi + 0x10]
call fcn.00410bd0
cmp dword [eax + 0x14], 8
jb 0x41b159
mov eax, dword [eax]
push 0
push 0x84200000
push 0
push 0
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x41b2ec
push 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 4
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
neg eax
push 0x800
sbb eax, eax
and dword [ebp - 0x1c], eax
call fcn.00421de3
push 0x800
mov esi, eax
mov dword [ebp - 0x14], 0x800
push 0
push esi
call fcn.00423c20
mov ecx, dword [edi + 0x10]
add esp, 0x10
call fcn.0040e440
test al, 0x20
je 0x41b249
push 0
lea eax, [ebp - 0x14]
push eax
push esi
push 0x16
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x41b249
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41b249
cmp dword [ebp - 0x14], 0
jbe 0x41b249
push esi
call fcn.00421dec
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shr eax, 1
mov edx, 2
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00421de3
mov esi, eax
mov eax, dword [ebp - 0x14]
shr eax, 1
lea eax, [eax*2 + 2]
push eax
push 0
push esi
mov dword [ebp - 0x14], eax
call fcn.00423c20
add esp, 0x14
lea eax, [ebp - 0x14]
push 0
push eax
push esi
push 0x16
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x41b249
mov word [esi], ax
push esi
push dword [ebp - 0x1c]
mov ecx, edi
mov byte [ebp - 0xd], 1
push 0
call fcn.0041aea0
test esi, esi
je 0x41b267
push esi
call fcn.00421dec
add esp, 4
cmp dword [edi + 0x14], 0
je 0x41b2e3
push 0x14
call fcn.00421b46
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x41b293
push dword [edi + 0x18]
mov ecx, eax
call fcn.0041b360
mov edx, eax
jmp 0x41b295
xor edx, edx
mov dword [ebp - 4], 0xffffffff
test edx, edx
je 0x41b2a9
mov ecx, dword [edi + 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
push 0x14
call fcn.00421b46
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x41b2cd
push dword [edi + 0x14]
mov ecx, eax
call fcn.0041b330
jmp 0x41b2cf
xor eax, eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x41b2e3
mov ecx, dword [edi + 0x14]
push eax
call fcn.00417640
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret