Function at 0x4167c0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1e30
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x54c1b4]
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 + 0x10]
mov edi, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0x88], eax
mov eax, dword [esi + 0xc]
xor ebx, ebx
mov dword [ebp - 0x8c], ecx
cmp eax, ebx
je 0x416815
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x416826
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 8], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x416837
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 4], ebx
push ebx
push ebx
push ebx
push ebx
push 0x513580
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x416870
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5135b8
push 0x5138b8
lea edi, [esi + 0x20]
call fcn.00407fa0
add esp, 0xc
xor al, al
jmp 0x416c99
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
push edx
mov edx, dword [esi + 0x14]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
mov dword [ebp - 4], ebx
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], 1
mov dword [ebp - 0x6c], eax
xor eax, eax
mov word [ebp - 0x80], ax
mov eax, edi
mov dword [ebp - 0x70], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4168c0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x80]
call fcn.00408810
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x2c]
lea ebx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.0040ad80
mov ebx, 8
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x6c], ebx
jb 0x41690f
mov edx, dword [ebp - 0x80]
push edx
call fcn.004bb4d8
add esp, 4
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], ebx
jae 0x41691a
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0x84]
mov edx, dword [esi + 4]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 8], eax
test eax, eax
jne 0x41698e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ConnectHttpServer
push 0x5138b8
lea edi, [esi + 0x20]
call fcn.00407fa0
add esp, 0xc
cmp dword [ebp - 0x18], ebx
jb 0x416962
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x50], ebx
jb 0x416987
mov edx, dword [ebp - 0x64]
push edx
call fcn.004bb4d8
add esp, 4
xor al, al
jmp 0x416c99
xor ebx, ebx
xor eax, eax
mov word [ebp - 0x48], ax
mov eax, edi
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4169a5
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.00408810
push 6
push str.https:
lea ecx, [ebp - 0x48]
push ecx
xor eax, eax
mov byte [ebp - 4], 3
call fcn.00407570
test eax, eax
jne 0x4169dd
mov ebx, 0x800000
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x4169e9
lea ecx, [ebp - 0x2c]
cmp dword [ebp + 0xc], 1
mov eax, 0x5135dc
je 0x4169f9
mov eax, str.POST
mov edx, dword [esi + 8]
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0xc], eax
cmp eax, ebx
jne 0x416a8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateHttpRequest
push 0x5138b8
lea edi, [esi + 0x20]
call fcn.00407fa0
mov esi, 8
add esp, 0xc
cmp dword [ebp - 0x34], esi
jb 0x416a44
mov eax, dword [ebp - 0x48]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], esi
jb 0x416a66
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004bb4d8
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x50], esi
jb 0x416987
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004bb4d8
add esp, 4
xor al, al
jmp 0x416c99
mov edx, dword [ebp - 0x88]
mov edi, dword [edx]
mov eax, edx
mov ecx, dword [eax + 4]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x416b08
mov dword [ebp - 0x84], ebx
add edi, dword [ebp - 0x84]
cmp dword [edi + 0x14], 8
jb 0x416ac8
mov eax, dword [edi]
jmp 0x416aca
mov eax, edi
push 0x20000000
push 0xffffffffffffffff
push eax
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov eax, dword [ebp - 0x88]
mov edi, dword [eax]
mov ecx, dword [eax + 4]
add dword [ebp - 0x84], 0x1c
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
inc ebx
add ecx, edx
cmp ebx, ecx
jb 0x416ab8
mov edx, dword [ebp - 0x8c]
xor ebx, ebx
cmp edx, ebx
jne 0x416b18
xor eax, eax
jmp 0x416b29
mov eax, edx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416b20
sub eax, edi
push ebx
push eax
push eax
push edx
mov edx, dword [esi + 0xc]
push ebx
push ebx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
je 0x416bba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SendHttpRequest
push 0x5138b8
lea edi, [esi + 0x20]
call fcn.00407fa0
mov esi, 8
add esp, 0xc
cmp dword [ebp - 0x34], esi
jb 0x416b70
mov eax, dword [ebp - 0x48]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], esi
jb 0x416b92
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004bb4d8
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x50], esi
jb 0x416987
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004bb4d8
add esp, 4
xor al, al
jmp 0x416c99
mov edx, dword [esi + 0xc]
push ebx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x416c42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x51387c
push 0x5138b8
lea edi, [esi + 0x20]
call fcn.00407fa0
mov esi, 8
add esp, 0xc
cmp dword [ebp - 0x34], esi
jb 0x416bfb
mov eax, dword [ebp - 0x48]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], esi
jb 0x416c1d
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004bb4d8
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x50], esi
jb 0x416987
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004bb4d8
add esp, 4
xor al, al
jmp 0x416c99
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x416c58
mov edx, dword [ebp - 0x48]
push edx
call fcn.004bb4d8
add esp, 4
xor eax, eax
mov edi, 7
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x18], esi
jb 0x416c7a
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004bb4d8
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x50], esi
jb 0x416c97
mov eax, dword [ebp - 0x64]
push eax
call fcn.004bb4d8
add esp, 4
mov al, 1
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.004bb4e3
mov esp, ebp
pop ebp
ret 0xc