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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43aad1
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x44a1b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp + 0x14]
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebp - 0xdc], eax
lea eax, [esi + 0x14]
mov dword [edi], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xe4], edx
jb 0x4124fe
mov eax, dword [eax]
push 0
push 0
push 0
push 1
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
xor ecx, ecx
mov dword [edi], eax
cmp eax, ecx
je 0x41278d
mov eax, 7
xor edx, edx
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa8], ecx
mov word [ebp - 0xb8], dx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x6c], eax
xor eax, eax
mov dword [ebp - 0x70], ecx
mov word [ebp - 0x80], ax
mov byte [ebp - 4], 1
mov dword [ebp - 0xe0], ecx
lea ecx, [ebp - 0xb8]
push ecx
push ebx
lea edx, [ebp - 0xe0]
lea ecx, [ebp - 0x80]
call fcn.004120b0
add esp, 8
test al, al
je 0x412746
mov ecx, 7
xor eax, eax
xor edx, edx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x8c], eax
mov word [ebp - 0x9c], dx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
mov word [ebp - 0x48], dx
mov dword [ebp - 0x50], ecx
xor ecx, ecx
mov dword [ebp - 0x54], eax
mov word [ebp - 0x64], cx
push eax
lea edx, [ebp - 0xb8]
push edx
or eax, 0xffffffff
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 5
call fcn.00405de0
push 0
lea eax, [ebp - 0x80]
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00405de0
mov ecx, dword [ebp - 0xe8]
push 0
push ecx
or eax, 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00405de0
push 0
push ebx
or eax, 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00405de0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov esi, dword [esi]
mov edx, dword [edi]
push eax
push ecx
push esi
push esi
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov edx, dword [ebp - 0x9c]
mov esi, 8
cmp dword [ebp - 0x88], esi
jae 0x412624
lea edx, [ebp - 0x9c]
mov eax, dword [ebp - 0xe4]
movzx eax, word [eax]
mov ecx, dword [edi]
push 0
push eax
push edx
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, dword [ebp - 0xdc]
mov dword [ebx], eax
test eax, eax
je 0x4126c2
push 1
push 0x44483c
lea ecx, [ebp - 0x64]
push ecx
xor eax, eax
call fcn.00403350
cmp eax, 0xffffffff
je 0x412691
push 0xffffffffffffffff
mov ecx, eax
lea esi, [ebp - 0xd4]
lea edx, [ebp - 0x64]
call fcn.00402e30
push 0
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.0040efe0
lea esi, [ebp - 0xd4]
call fcn.004063b0
mov esi, 8
mov edx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x41269c
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x4126a7
lea ecx, [ebp - 0x48]
mov eax, dword [ebx]
push 0
push 0
push 0
push 0
push edx
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edx, dword [ebp - 0xd8]
mov dword [edx], eax
cmp dword [ebp - 0x50], esi
jb 0x4126d3
mov eax, dword [ebp - 0x64]
push eax
call fcn.0041e13f
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x34], 8
mov esi, 7
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], cx
jb 0x4126fa
mov edx, dword [ebp - 0x48]
push edx
call fcn.0041e13f
add esp, 4
xor eax, eax
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
jb 0x41271c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0041e13f
add esp, 4
xor edx, edx
cmp dword [ebp - 0x88], 8
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
jb 0x412751
mov eax, dword [ebp - 0x9c]
push eax
call fcn.0041e13f
add esp, 4
jmp 0x412751
mov ebx, dword [ebp - 0xdc]
mov esi, 7
cmp dword [ebp - 0x6c], 8
jb 0x412763
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.0041e13f
add esp, 4
xor edx, edx
cmp dword [ebp - 0xa4], 8
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], dx
jb 0x412793
mov eax, dword [ebp - 0xb8]
push eax
call fcn.0041e13f
add esp, 4
jmp 0x412793
mov ebx, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0xd8]
cmp dword [ecx], 0
jne 0x4127c2
mov eax, dword [ebx]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x4127ad
push eax
call esi
mov dword [ebx], 0
mov eax, dword [edi]
test eax, eax
je 0x4127bc
push eax
call esi
mov dword [edi], 0
mov edx, dword [ebp - 0xd8]
cmp dword [edx], 0
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e14a
mov esp, ebp
pop ebp
ret 0x10