Function at 0x40c0d0
Capabilities:
Initialize winhttp library
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452250
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x46a524]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x20], ebx
je 0x40c30b
cmp dword [ebp + 0x40], ebx
je 0x40c30b
sub esp, 0x20
mov esi, esp
mov dword [ebp - 0x48], esp
mov dword [ebp - 0x4c], esi
mov dword [esi], ebx
push 8
mov byte [ebp - 4], 2
call fcn.00420770
add esp, 4
cmp eax, ebx
je 0x40c2e7
mov dword [esi], eax
xor ecx, ecx
xor edx, edx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [esi]
mov dword [ecx], esi
push 0xffffffffffffffff
mov byte [ebp - 4], 3
push ebx
lea edx, [ebp + 0xc]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004015e0
lea esi, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00401ab0
push ebx
push ebx
push ebx
push ebx
push str.OneDriveTools
mov byte [ebp - 4], 4
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x40c1a5
push 4
lea ecx, [ebp - 0x48]
push ecx
push 0x54
push eax
mov dword [ebp - 0x48], 0xa00
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
lea edi, [ebp - 0x44]
call fcn.00401bf0
sub esp, 0x20
mov esi, esp
mov dword [ebp - 0x4c], esp
mov dword [ebp - 0x5c], esi
mov dword [esi], ebx
push 8
mov byte [ebp - 4], 5
call fcn.00420770
add esp, 4
cmp eax, ebx
je 0x40c2c3
mov dword [esi], eax
xor edx, edx
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edx, dword [esi]
mov dword [edx], esi
push 0xffffffffffffffff
mov byte [ebp - 4], 6
push ebx
lea eax, [ebp + 0x2c]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004015e0
sub esp, 0x20
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x5c], esp
push 0x464fec
call fcn.00401130
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00401c70
cmp dword [ebp - 0x24], ebx
je 0x40c23d
cmp dword [ebp - 0x20], ebx
je 0x40c23d
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x40c24c
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x40c24c
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov edi, dword [ebp - 0x60]
lea ecx, [ebp - 0x44]
push ecx
call fcn.00402070
lea esi, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00401b90
mov esi, 0x10
mov byte [ebp - 4], bl
cmp dword [ebp + 0x24], esi
jb 0x40c27d
mov edx, dword [ebp + 0x10]
push edx
call fcn.004205f0
add esp, 4
mov edi, 0xf
lea ecx, [ebp + 0xc]
mov dword [ebp + 0x24], edi
mov dword [ebp + 0x20], ebx
mov byte [ebp + 0x10], bl
call fcn.00401380
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x44], esi
jb 0x40c2ab
mov eax, dword [ebp + 0x30]
push eax
call fcn.004205f0
add esp, 4
lea ecx, [ebp + 0x2c]
mov dword [ebp + 0x44], edi
mov dword [ebp + 0x40], ebx
mov byte [ebp + 0x30], bl
call fcn.00401380
mov al, 1
jmp 0x40c365
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], ebx
call fcn.0041fd80
push 0x467ba8
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 0x58], vtable.std::bad_alloc.0
call fcn.004287b0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], ebx
call fcn.0041fd80
push 0x467ba8
lea ecx, [ebp - 0x58]
push ecx
mov dword [ebp - 0x58], vtable.std::bad_alloc.0
call fcn.004287b0
mov esi, 0x10
mov byte [ebp - 4], bl
cmp dword [ebp + 0x24], esi
jb 0x40c324
mov edx, dword [ebp + 0x10]
push edx
call fcn.004205f0
add esp, 4
mov edi, 0xf
lea ecx, [ebp + 0xc]
mov dword [ebp + 0x24], edi
mov dword [ebp + 0x20], ebx
mov byte [ebp + 0x10], bl
call fcn.00401380
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x44], esi
jb 0x40c352
mov eax, dword [ebp + 0x30]
push eax
call fcn.004205f0
add esp, 4
lea ecx, [ebp + 0x2c]
mov dword [ebp + 0x44], edi
mov dword [ebp + 0x40], ebx
mov byte [ebp + 0x30], bl
call fcn.00401380
xor al, al
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.0041fd40
mov esp, ebp
pop ebp
ret