Function at 0x41b460
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cf62
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 0x41b4a8
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.00410c50
cmp dword [eax + 0x14], 8
jb 0x41b4c0
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 0x41b733
push 0x30
call fcn.00421ff6
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x41b52f
mov ecx, dword [edi + 0x10]
call fcn.0040e820
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.00410c30
push eax
call fcn.00416910
mov ecx, dword [ebp - 0x24]
push eax
push ebx
push esi
push edi
call fcn.00418120
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
jmp 0x41b531
xor eax, eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x41b545
mov ecx, dword [edi + 0x14]
push eax
call fcn.00417a30
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.00410fa0
cmp dword [eax + 0x14], 8
jb 0x41b599
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 0x41b72c
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.00422293
push 0x800
mov esi, eax
mov dword [ebp - 0x14], 0x800
push 0
push esi
call fcn.004240d0
mov ecx, dword [edi + 0x10]
add esp, 0x10
call fcn.0040e820
test al, 0x20
je 0x41b689
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 0x41b689
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41b689
cmp dword [ebp - 0x14], 0
jbe 0x41b689
push esi
call fcn.0042229c
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.00422293
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.004240d0
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 0x41b689
mov word [esi], ax
push esi
push dword [ebp - 0x1c]
mov ecx, edi
mov byte [ebp - 0xd], 1
push 0
call fcn.0041b2e0
test esi, esi
je 0x41b6a7
push esi
call fcn.0042229c
add esp, 4
cmp dword [edi + 0x14], 0
je 0x41b723
push 0x14
call fcn.00421ff6
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x41b6d3
push dword [edi + 0x18]
mov ecx, eax
call fcn.0041b7a0
mov edx, eax
jmp 0x41b6d5
xor edx, edx
mov dword [ebp - 4], 0xffffffff
test edx, edx
je 0x41b6e9
mov ecx, dword [edi + 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
push 0x14
call fcn.00421ff6
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x41b70d
push dword [edi + 0x14]
mov ecx, eax
call fcn.0041b770
jmp 0x41b70f
xor eax, eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x41b723
mov ecx, dword [edi + 0x14]
push eax
call fcn.00417a30
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