Function at 0x40b102
Capabilities:
Prepare http request

Disassembly:
push 0x80
mov eax, 0x470862
call fcn.0045d4e7
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov edi, ecx
mov dword [eax], ebx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x70], eax
cmp dword [edi + 0x50], ebx
je 0x40b67f
cmp dword [edi + 0x54], ebx
je 0x40b67f
mov esi, 0x100
cmp byte [edi + 0x78], bl
je 0x40b152
push str.Using_SSL_protocol
call fcn.00416edc
pop ecx
mov esi, 0x800100
push 0x497a28
lea ecx, [ebp - 0x40]
call fcn.004037fc
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0x10]
push ecx
push eax
call fcn.0042df63
pop ecx
pop ecx
test al, al
jne 0x40b197
push str.Query_failed
call fcn.00416f04
pop ecx
mov esi, 0x8007000e
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.00403af7
mov eax, esi
jmp 0x40b684
push ebx
lea ecx, [ebp - 0x40]
call fcn.0040c3d8
push esi
push ebx
push ebx
push ebx
push dword [ebp - 0x40]
push str.POST
push dword [edi + 0x54]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x38], eax
cmp eax, ebx
jne 0x40b1e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.WinHttpOpenRequest_call_failed__ErrorCode_d
call fcn.00416f04
cmp esi, ebx
pop ecx
pop ecx
jle 0x40b185
and esi, 0xffff
or esi, 0x80070000
jmp 0x40b185
cmp byte [edi + 6], bl
je 0x40b21b
push 4
lea ecx, [ebp - 0x3c]
push ecx
push 0x1f
push eax
mov dword [ebp - 0x3c], 0x3300
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp eax, ebx
je 0x40b20e
push str.WinHttpSetOption_succeeded__invalid_or_out_of_date_certificates_allowed
call fcn.00416edc
jmp 0x40b21a
push ebx
push str.Could_not_set_relaxed_SSL_requirements__WinHttpSetOption_failed:_0x_08x
call fcn.00416f04
pop ecx
pop ecx
lea ecx, [ebp - 0x68]
call fcn.0042a635
push 0x13c
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 2
call fcn.0041cd1d
pop ecx
cmp eax, ebx
je 0x40b247
mov esi, eax
call fcn.0040b68c
mov esi, eax
mov dword [ebp - 0x3c], eax
jmp 0x40b24c
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], 1
jmp 0x40b362
push str.DING::CWinHTTPClient::Query_498__:_Failed_to_allocate_memory_for_request_context
call fcn.00416f04
pop ecx
push dword [ebp - 0x38]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebp - 0x68]
call fcn.0042a615
jmp 0x40b180
cmp esi, ebx
je 0x40b2b9
lea ecx, [ebp - 0x68]
call fcn.0042a5f3
test al, al
jne 0x40b2b9
cmp byte [edi], bl
je 0x40b465
push ebx
push 0xffffffffffffffff
lea eax, [edi + 0x30]
push eax
lea ecx, [ebp - 0x80]
call fcn.004478d7
lea eax, [edi + 0x7c]
cmp dword [eax], ebx
jne 0x40b3cb
push dword [ebp - 0x38]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call fcn.0040b6b0
push str.callback_cant_be_NULL_for_async_operation
call fcn.00416f04
pop ecx
lea ecx, [ebp - 0x80]
call fcn.004478fe
lea ecx, [ebp - 0x68]
call fcn.0042a615
mov esi, 0x80070057
jmp 0x40b185
cmp eax, esi
je 0x40b3d9
mov edi, dword [eax]
call fcn.0040c3fd
mov edi, dword [ebp - 0x44]
push ebx
push ebx
push ebx
push ebx
push 1
lea ecx, [esi + 0x134]
push ebx
call fcn.0042b355
test eax, eax
jne 0x40b3fa
push str.failed_to_create_close_event
call fcn.00416f04
pop ecx
lea ecx, [esi + 0x134]
call fcn.0042b25d
lea ecx, [ebp - 0x80]
call fcn.004478fe
push ebx
push 0xffffffffffffffff
push 0x40a868
push dword [ebp - 0x38]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x40b465
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.WinHttpSetStatusCallback_call_failed__ErrorCode_lu
call fcn.00416f04
pop ecx
pop ecx
push dword [ebp - 0x38]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call fcn.0040b6b0
cmp edi, ebx
jle 0x40b456
and edi, 0xffff
or edi, 0x80070000
mov esi, edi
lea ecx, [ebp - 0x68]
call fcn.0042a615
jmp 0x40b185
cmp dword [ebp + 0xc], ebx
je 0x40b49f
push dword [ebp + 0xc]
lea ecx, [esi + 0x9c]
push dword [ebp - 0x6c]
push 2
call fcn.0042fb6c
test eax, eax
jne 0x40b49f
push str.cant_allocate_optional_memory
call fcn.00416f04
pop ecx
push dword [ebp - 0x38]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call fcn.0040b6b0
jmp 0x40b2cd
lea eax, [ebp - 0x38]
push eax
lea ebx, [edi + 0x58]
mov byte [ebp - 4], 4
call fcn.0040c421
mov dword [eax], esi
jmp 0x40b599
lea ecx, [ebp - 0x68]
call fcn.0042a5f3
test al, al
je 0x40b5c3
call fcn.0040b6b0
lea ecx, [ebp - 0x68]
call fcn.0042a611
push eax
push str.DING::CWinHTTPClient::Query_556__:_Couldnt_add_request_to_map__s
call fcn.00416f04
pop ecx
jmp 0x40b2c3
push dword [ebp - 0x38]
mov eax, edi
call fcn.0040bfb7
cmp byte [edi + 2], 0
je 0x40b602
push 4
lea eax, [ebp - 0x6c]
push eax
push 0x3f
push dword [ebp - 0x38]
mov dword [ebp - 0x6c], 8
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x40b602
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpSetOption_WINHTTP_DISABLE_KEEP_ALIVE__failed:__lu
call fcn.00416f04
pop ecx
pop ecx
push esi
push dword [ebp + 0xc]
lea ebx, [esi + 0x9c]
mov ecx, ebx
call fcn.004396ac
push eax
mov ecx, ebx
call fcn.0042d07f
mov ebx, dword [ebp - 0x38]
push eax
push 0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x40b663
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.WinHttpSendRequest_call_failed__ErrorCode_lu
call fcn.00416f04
pop ecx
pop ecx
push ebx
push edi
call fcn.0040b9bd
test esi, esi
jle 0x40b458
and esi, 0xffff
or esi, 0x80070000
jmp 0x40b458
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x68]
mov dword [eax], ebx
call fcn.0042a615
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.00403af7
xor eax, eax
jmp 0x40b684
mov eax, 0x8000ffff
call fcn.0045d543
ret 0xc