Function at 0x42ca66
Capabilities:
Prepare http request
Set http header

Disassembly:
push 0x530
mov eax, 0x64d110
call fcn.005b47af
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
xor ebx, ebx
mov word [ebp - 0x28], ax
mov edi, 0x684590
mov dword [ebp - 0x18], ebx
cmp word [0x684590], ax
je 0x42ca9e
push edi
call fcn.005ff18e
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.0040a315
lea edi, [esi + 0x68]
mov dword [ebp - 4], ebx
cmp dword [edi], 2
mov ecx, edi
jne 0x42cad0
lea eax, [ebp - 0x58]
push eax
call fcn.0042c408
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c133
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x58]
inc ebx
jmp 0x42cb08
lea eax, [ebp - 0x40]
push eax
call fcn.0042c408
push eax
xor ebx, ebx
lea eax, [ebp - 0x58]
inc ebx
mov ecx, esi
push eax
mov byte [ebp - 4], bl
call fcn.0042bfa2
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c133
push 0
push ebx
lea ecx, [ebp - 0x58]
call fcn.00409de7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 0
push ebx
call fcn.00409de7
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
movzx eax, word [esi + 0x6c]
cmovae ecx, dword [ebp - 0x28]
push 0
push eax
push ecx
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x42cb98
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push ebx
push 3
lea ecx, [ebp - 0x11c]
mov dword [esi + 0x60], eax
call fcn.004078ff
push dword [esi + 0x60]
lea eax, [ebp - 0x10c]
mov byte [ebp - 4], 2
push str.WinHttpConnect_last_error_:
push eax
call fcn.0040710b
pop ecx
pop ecx
mov ecx, eax
call fcn.004129b9
lea eax, [ebp - 0x11c]
push eax
push str.Http::open
push 0xf8
push str.D:_build6c589d3ff8507062_srccommonNetworkHttp.cpp
push 0
call fcn.0040b02b
mov ecx, eax
call fcn.0041875b
lea ecx, [ebp - 0x11c]
jmp 0x42cd67
xor edx, edx
mov dword [ebp - 0x6c], 0x68886c
cmp dword [edi], 2
mov eax, 0x800100
mov ecx, 0x100
mov dword [ebp - 0x68], edx
cmovne eax, ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x64], eax
mov eax, dword [esi + 0x64]
sub eax, edx
je 0x42cc29
sub eax, 1
je 0x42cc20
push ebx
push 3
lea ecx, [ebp - 0x1cc]
call fcn.004078ff
lea eax, [ebp - 0x1bc]
mov byte [ebp - 4], 3
push str.NOT_IMPLEMENTED_
push eax
call fcn.00412133
pop ecx
pop ecx
lea eax, [ebp - 0x1cc]
push eax
push str.Http::open
push 0x10b
push str.D:_build6c589d3ff8507062_srccommonNetworkHttp.cpp
push 0
call fcn.0040b02b
mov ecx, eax
call fcn.0041875b
lea ecx, [ebp - 0x1cc]
mov byte [ebp - 4], 0
call fcn.0040843a
jmp 0x42cc30
mov dword [ebp - 0x60], str.POST
jmp 0x42cc30
mov dword [ebp - 0x60], 0x688874
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.0042f519
cmp dword [eax + 0x14], 8
jb 0x42cc43
mov eax, dword [eax]
push dword [ebp - 0x64]
lea ecx, [ebp - 0x6c]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x60]
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
push 0
push ebx
lea ecx, [ebp - 0x40]
mov dword [esi + 0x14], eax
call fcn.00409de7
cmp dword [esi + 0x14], 0
jne 0x42ccd6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push ebx
push 3
lea ecx, [ebp - 0x27c]
mov dword [esi + 0x60], eax
call fcn.004078ff
push dword [esi + 0x60]
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 4
push str.WinHttpOpenRequest_last_error_:
push eax
call fcn.0040710b
pop ecx
pop ecx
mov ecx, eax
call fcn.004129b9
lea eax, [ebp - 0x27c]
push eax
push str.Http::open
push 0x112
push str.D:_build6c589d3ff8507062_srccommonNetworkHttp.cpp
push 0
call fcn.0040b02b
mov ecx, eax
call fcn.0041875b
lea ecx, [ebp - 0x27c]
jmp 0x42cd67
cmp byte [esi + 0x1a], 0
jne 0x42cd75
cmp dword [edi], 2
jne 0x42cd75
push 4
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0x1100
push eax
push 0x1f
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x42cd75
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push ebx
push 3
lea ecx, [ebp - 0x32c]
mov dword [esi + 0x60], eax
call fcn.004078ff
push dword [esi + 0x60]
lea eax, [ebp - 0x31c]
mov byte [ebp - 4], 5
push str.WinHttpSetOption_failed_while_disabling_certificates_check._Last_error_:
push eax
call fcn.0040710b
pop ecx
pop ecx
mov ecx, eax
call fcn.004129b9
lea eax, [ebp - 0x32c]
push eax
push str.Http::open
push 0x11d
push str.D:_build6c589d3ff8507062_srccommonNetworkHttp.cpp
push 0
call fcn.0040b02b
mov ecx, eax
call fcn.0041875b
lea ecx, [ebp - 0x32c]
call fcn.0040843a
mov byte [ebp - 0x59], 0
jmp 0x42cf12
push ebx
push 3
lea ecx, [ebp - 0x53c]
call fcn.004078ff
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push eax
mov ecx, edi
call fcn.0042c408
push eax
lea eax, [ebp - 0x52c]
mov byte [ebp - 4], 7
push str.Host:
push eax
call fcn.0040710b
pop ecx
pop ecx
push eax
call fcn.00410ade
pop ecx
pop ecx
push 0
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.00409de7
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x53c]
call fcn.00410f89
cmp dword [eax + 0x14], 8
jb 0x42cdd8
mov eax, dword [eax]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
push 0xa0000000
push 0xffffffffffffffff
push eax
push dword [esi + 0x14]
call edi
mov ebx, eax
lea ecx, [ebp - 0x40]
push 0
neg ebx
push 1
sbb bl, bl
call fcn.00409de7
add bl, 1
je 0x42ce6c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ebx, ebx
mov dword [esi + 0x60], eax
inc ebx
lea ecx, [ebp - 0x3dc]
push ebx
push 3
call fcn.004078ff
push dword [esi + 0x60]
lea eax, [ebp - 0x3cc]
mov byte [ebp - 4], 8
push str.WinHttpAddRequestHeaders_last_error_:
push eax
call fcn.0040710b
pop ecx
pop ecx
mov ecx, eax
call fcn.004129b9
lea eax, [ebp - 0x3dc]
push eax
push str.Http::open
push 0x127
push str.D:_build6c589d3ff8507062_srccommonNetworkHttp.cpp
push 0
call fcn.0040b02b
mov ecx, eax
call fcn.0041875b
lea ecx, [ebp - 0x3dc]
jmp 0x42cef9
xor ebx, ebx
inc ebx
cmp dword [esi + 0x64], ebx
jne 0x42cf04
lea eax, [esi + 0xc0]
cmp dword [eax + 0x14], 8
jb 0x42ce86
mov eax, dword [eax]
push 0xa0000000
push 0xffffffffffffffff
push eax
push dword [esi + 0x14]
call edi
test eax, eax
jne 0x42cf04
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push ebx
push 3
lea ecx, [ebp - 0x48c]
mov dword [esi + 0x60], eax
call fcn.004078ff
push dword [esi + 0x60]
lea eax, [ebp - 0x47c]
mov byte [ebp - 4], 9
push str.WinHttpAddRequestHeaders_last_error_:
push eax
call fcn.0040710b
pop ecx
pop ecx
mov ecx, eax
call fcn.004129b9
lea eax, [ebp - 0x48c]
push eax
push str.Http::open
push 0x130
push str.D:_build6c589d3ff8507062_srccommonNetworkHttp.cpp
push 0
call fcn.0040b02b
mov ecx, eax
call fcn.0041875b
lea ecx, [ebp - 0x48c]
call fcn.0040843a
mov byte [ebp - 0x59], 0
jmp 0x42cf07
mov byte [ebp - 0x59], bl
lea ecx, [ebp - 0x53c]
call fcn.0040843a
push 0
push ebx
lea ecx, [ebp - 0x28]
call fcn.00409de7
mov al, byte [ebp - 0x59]
call fcn.005b4759
ret