Function at 0x40d234
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43540d
mov eax, dword fs:[0]
push eax
mov eax, 0x10010
call fcn.0042c8e0
mov eax, dword [0x4484c0]
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 dword [ebp - 0x1001c], eax
xor ebx, ebx
push str.GenericAPICaller::MakeApiRequest
mov dword [ebp - 4], ebx
call fcn.004174b2
mov dword [esp], 0x10000
lea eax, [ebp - 0x10010]
push ebx
push eax
mov esi, ebx
mov dword [ebp - 0x10014], ebx
mov dword [ebp - 0x10018], ebx
call fcn.0041bd90
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push str.VersionDwl
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
test eax, eax
jne 0x40d2d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push str.Error__u_in_WinHttpOpen._n
mov esi, eax
call fcn.004174b2
pop ecx
pop ecx
jmp 0x40d3f5
push ebx
push 0x50
push dword [edi]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
test eax, eax
jne 0x40d2f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push str.Error__u_in_WinHttpConnect._n
jmp 0x40d2c4
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
push 0x43f994
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
jne 0x40d317
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push str.Error__u_in_WinHttpOpenRequest._n
jmp 0x40d2c4
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
je 0x40d337
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push str.Error__u_in_WinHttpSendRequest._n
jmp 0x40d2c4
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov ecx, dword [ebp - 0x10014]
xor edx, edx
test eax, eax
lea eax, [ebp - 0x10014]
push eax
cmovne ecx, edx
push edi
mov dword [ebp - 0x10014], ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40d377
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.Error__u_in_WinHttpQueryDataAvailable._n
jmp 0x40d2c6
mov eax, dword [ebp - 0x10014]
test eax, eax
je 0x40d3f0
lea ecx, [ebp - 0x10018]
push ecx
push eax
lea eax, [ebp - 0x10010]
add eax, ebx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40d3c3
add ebx, dword [ebp - 0x10014]
lea eax, [ebp - 0x10014]
and dword [ebp - 0x10014], esi
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov eax, dword [ebp - 0x10014]
test eax, eax
jne 0x40d381
jmp 0x40d3d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.Error__u_in_WinHttpReadData._n
call fcn.004174b2
pop ecx
pop ecx
test ebx, ebx
je 0x40d3f0
mov ecx, dword [ebp - 0x1001c]
lea eax, [ebp - 0x10010]
push eax
call fcn.0040d420
jmp 0x40d3f5
mov esi, 0xe8
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004045c1
mov eax, esi
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.00419236
mov esp, ebp
pop ebp
ret 8