Function at 0x47c6c0
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push 0xffffffffffffffff
push 0x4ee7dd
mov eax, dword fs:[0]
push eax
mov eax, 0xca2c
call fcn.004e03c0
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0xca28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0xca40]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xca50]
mov esi, dword [esp + 0xca54]
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebx
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov dword [esp + 0xca48], 1
push ebx
push ebx
push ebx
push 1
push str.A_truecut_Program_1.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [esp + 0x28], edi
cmp edi, ebx
je 0x47c913
mov ecx, dword [0x1070790]
push 3
lea eax, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], eax
call fcn.0041cfe0
mov byte [esp + 0xca48], 2
movzx edx, word [0x1070770]
mov eax, dword [esp + 0x34]
push ebx
push edx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebp, eax
mov dword [esp + 0x24], ebp
mov byte [esp + 0xca48], 1
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x38]
cmp eax, ecx
je 0x47c7a5
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
cmp ebp, ebx
je 0x47c908
mov eax, dword [esi]
push 3
lea edx, [esp + 0x140]
push eax
lea ecx, [esp + 0x140]
mov dword [esp + 0x140], edx
call fcn.0041cfe0
mov byte [esp + 0xca48], 3
movzx eax, byte [esp + 0xca58]
mov ecx, dword [esp + 0x138]
neg eax
sbb eax, eax
and eax, 0x800000
push eax
push ebx
push ebx
push ebx
push ecx
push 0x514058
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov byte [esp + 0xca48], 1
mov eax, dword [esp + 0x138]
lea edx, [esp + 0x13c]
cmp eax, edx
je 0x47c823
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
cmp edi, ebx
je 0x47c8fd
push ebx
push ebx
push ebx
push ebx
push ebx
push str.Content_Type:_application_json
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, ebx
je 0x47c9a4
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp eax, ebx
je 0x47c964
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push 0x20000013
push edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp eax, ebx
je 0x47c8f6
cmp dword [esp + 0x20], 0xc8
jne 0x47c8f6
mov ebp, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
lea esp, [esp]
push 0xc800
lea edx, [esp + 0x240]
push ebx
push edx
mov dword [esp + 0x28], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0xc800
lea ecx, [esp + 0x244]
push ecx
push edi
call ebp
mov esi, eax
cmp esi, ebx
je 0x47c8e0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jbe 0x47c8e0
push eax
lea edx, [esp + 0x240]
push edx
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_1322]
push 3
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, ebx
je 0x47c8f2
cmp dword [esp + 0x1c], ebx
ja 0x47c890
mov ebp, dword [esp + 0x24]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, dword [esp + 0x28]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ebp, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
push ecx
push ebp
call fcn.0047c480
add esp, 8
mov dword [esp + 0x30], 1
mov byte [esp + 0xca48], bl
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, ebp
mov ecx, dword [esp + 0xca40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xca28]
xor ecx, esp
call fcn.004e0148
add esp, 0xca38
ret
call fcn.00469660
lea eax, [esp + 0x14]
push eax
call fcn.00491540
mov byte [esp + 0xca4c], 4
mov ecx, dword [eax]
push ecx
push str.WinHttpReceiveResponse_err__s_
push 8
call fcn.0043d500
add esp, 0x10
mov byte [esp + 0xca48], 1
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x47c8f6
call fcn.00469660
lea edx, [esp + 0x14]
push edx
call fcn.00491540
mov byte [esp + 0xca4c], 5
mov eax, dword [eax]
push eax
push str.WinHttpSendRequest_err__s_
jmp 0x47c983