Function at 0x100464b0
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10171415
mov eax, dword fs:[0]
push eax
mov eax, 0x1294
call fcn.10110210
mov eax, dword [0x101c6270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1260], eax
mov eax, dword [ebp + 0x10]
push str.Performing_OpenRequest_...
push 1
mov dword [ebp - 0x1264], eax
call fcn.100566d0
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.1012bf20
push 0x1000
lea eax, [ebp - 0x1210]
push 0
push eax
call fcn.1012bf20
lea eax, [edi + 0x80]
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x1004653c
mov eax, dword [eax]
push 0
push 0
push eax
push 3
push str.WinHTTP_1.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebx], eax
test eax, eax
jne 0x100465b7
push 0xb
push 0x1017da84
lea ecx, [ebp - 0x1228]
mov dword [ebp - 0x1218], eax
mov dword [ebp - 0x1214], 7
mov word [ebp - 0x1228], ax
call fcn.10004470
lea eax, [ebp - 0x1228]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.10047c30
mov eax, dword [ebp - 0x1214]
cmp eax, 8
jb 0x100465b0
inc eax
lea ecx, [ebp - 0x1228]
push eax
push dword [ebp - 0x1228]
call fcn.10004630
xor al, al
jmp 0x100467c9
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push eax
mov byte [ecx], 0
call fcn.1000d420
lea eax, [ebp - 0x1240]
push eax
call fcn.10055f40
cmp dword [ebp - 0x122c], 8
lea eax, [ebp - 0x12a0]
push 0x3c
push 0
lea esi, [ebp - 0x1240]
mov dword [ebp - 4], 1
cmovae esi, dword [ebp - 0x1240]
push eax
call fcn.1012bf20
lea eax, [ebp - 0x210]
mov dword [ebp - 0x12a0], 0x3c
add esp, 0x28
mov dword [ebp - 0x1290], eax
lea eax, [ebp - 0x1210]
mov dword [ebp - 0x128c], 0x100
mov dword [ebp - 0x1274], eax
lea eax, [ebp - 0x12a0]
mov dword [ebp - 0x1270], 0x800
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x10046695
push 0xf
push 0x1017e438
lea ecx, [ebp - 0x1228]
mov dword [ebp - 0x1218], eax
mov dword [ebp - 0x1214], 7
mov word [ebp - 0x1228], ax
call fcn.10004470
mov byte [ebp - 4], 2
jmp 0x10046706
xor ecx, ecx
mov edx, 0x1bb
cmp dword [ebp - 0x1294], 2
mov eax, 0x50
push 0
sete cl
test ecx, ecx
mov dword [ebp - 0x125c], ecx
cmovne eax, edx
movzx eax, ax
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, dword [ebp - 0x1260]
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
jne 0x1004673e
push 0xe
push 0x1017e458
lea ecx, [ebp - 0x1228]
mov dword [ebp - 0x1218], eax
mov dword [ebp - 0x1214], 7
mov word [ebp - 0x1228], ax
call fcn.10004470
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1228]
mov ecx, edi
push eax
call fcn.10047c30
mov eax, dword [ebp - 0x1214]
cmp eax, 8
jb 0x10046732
inc eax
lea ecx, [ebp - 0x1228]
push eax
push dword [ebp - 0x1228]
call fcn.10004630
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor bl, bl
jmp 0x100467a9
mov eax, dword [ebp - 0x125c]
shl eax, 0x17
push eax
push 0
push 0
push 0
push 0
push str.HEAD
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ecx, dword [ebp - 0x1264]
mov dword [ecx], eax
test eax, eax
jne 0x100467a7
push 0x1017e478
lea ecx, [ebp - 0x1258]
call fcn.10003bf0
lea eax, [ebp - 0x1258]
mov byte [ebp - 4], 4
push eax
mov ecx, edi
call fcn.10047c30
lea ecx, [ebp - 0x1258]
call fcn.10004690
push dword [esi]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebx]
call esi
xor bl, bl
jmp 0x100467a9
mov bl, 1
mov ecx, dword [ebp - 0x122c]
cmp ecx, 8
jb 0x100467c7
inc ecx
push ecx
push dword [ebp - 0x1240]
lea ecx, [ebp - 0x1240]
call fcn.10004630
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010f54f
mov esp, ebp
pop ebp
ret 0xc