Function at 0x1400539f0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x278
lea rcx, str.wininet.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140053a77
lea rdx, str.LoadLibraryA_failed:
lea rcx, [0x1400955a0]
call fcn.1400013d0
mov qword [rsp + 0xb0], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x74], eax
mov edx, dword [rsp + 0x74]
mov rcx, qword [rsp + 0xb0]
call fcn.1400079c0
mov qword [rsp + 0xb8], rax
lea rdx, [0x140004500]
mov rcx, qword [rsp + 0xb8]
call fcn.140007bf0
jmp 0x1400540c6
lea rdx, str.InternetOpenA
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x90], rax
lea rdx, str.InternetConnectA
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x98], rax
lea rdx, str.HttpOpenRequestA
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xa0], rax
lea rdx, str.HttpSendRequestA
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xa8], rax
lea rdx, str.InternetCloseHandle
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x90], 0
je 0x140053b2a
cmp qword [rsp + 0x98], 0
je 0x140053b2a
cmp qword [rsp + 0xa0], 0
je 0x140053b2a
cmp qword [rsp + 0xa8], 0
je 0x140053b2a
cmp qword [rsp + 0x48], 0
jne 0x140053b8c
lea rdx, str.GetProcAddress_failed:
lea rcx, [0x1400955a0]
call fcn.1400013d0
mov qword [rsp + 0xc0], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xc0]
call fcn.1400079c0
mov qword [rsp + 0xc8], rax
lea rdx, [0x140004500]
mov rcx, qword [rsp + 0xc8]
call fcn.140007bf0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400540c6
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.A_WinInet_Example_Program_1.0
call qword [rsp + 0xd0]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140053c2c
lea rdx, str.InternetOpenA_failed:
lea rcx, [0x1400955a0]
call fcn.1400013d0
mov qword [rsp + 0xd8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x64], eax
mov edx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0xd8]
call fcn.1400079c0
mov qword [rsp + 0xe0], rax
lea rdx, [0x140004500]
mov rcx, qword [rsp + 0xe0]
call fcn.140007bf0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400540c6
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8w, 0x1bb
lea rdx, str.api.telegram.org
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0xe8]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140053d01
lea rdx, str.InternetConnectA_failed:
lea rcx, [0x1400955a0]
call fcn.1400013d0
mov qword [rsp + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0xf0]
call fcn.1400079c0
mov qword [rsp + 0xf8], rax
lea rdx, [0x140004500]
mov rcx, qword [rsp + 0xf8]
call fcn.140007bf0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x100], rax
mov rcx, qword [rsp + 0x50]
call qword [rsp + pe_nt_image_headers64]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400540c6
mov r8, qword [rsp + 0x280]
lea rdx, str._bot
lea rcx, [rsp + 0x208]
call fcn.140001820
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x110], rax
lea r8, str._sendMessage
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0x1e8]
call fcn.1400017d0
nop
lea rcx, [rsp + 0x208]
call fcn.140007450
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x118], rax
lea rcx, [rsp + 0x1e8]
call fcn.140050cc0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.POST
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x118]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
jne 0x140053e71
lea rdx, str.HttpOpenRequestA_failed:
lea rcx, [0x1400955a0]
call fcn.1400013d0
mov qword [rsp + 0x120], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x6c], eax
mov edx, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x120]
call fcn.1400079c0
mov qword [rsp + 0x128], rax
lea rdx, [0x140004500]
mov rcx, qword [rsp + 0x128]
call fcn.140007bf0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x130], rax
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x130]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x138], rax
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x138]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rcx, [rsp + 0x1e8]
call fcn.140007450
jmp 0x1400540c6
lea rdx, str.Content_Type:_application_x_www_form_urlencoded
lea rcx, [rsp + 0x1c8]
call fcn.140005e80
nop
mov r8, qword [rsp + 0x288]
lea rdx, str.chat_id
lea rcx, [rsp + 0x248]
call fcn.140001820
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x148], rax
lea r8, str.text
mov rdx, qword [rsp + 0x148]
lea rcx, [rsp + 0x228]
call fcn.1400017d0
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x158], rax
mov r8, qword [rsp + 0x290]
mov rdx, qword [rsp + 0x158]
lea rcx, [rsp + 0x1a8]
call fcn.140001780
nop
lea rcx, [rsp + 0x228]
call fcn.140007450
nop
lea rcx, [rsp + 0x248]
call fcn.140007450
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x170], rax
lea rcx, [rsp + 0x1a8]
call fcn.140053390
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x1a8]
call fcn.140050cc0
mov qword [rsp + 0x160], rax
lea rcx, [rsp + 0x1c8]
call fcn.140053390
mov dword [rsp + 0x80], eax
lea rcx, [rsp + 0x1c8]
call fcn.140050cc0
mov qword [rsp + 0x168], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x160]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x88]
call qword [rsp + 0x170]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0
jne 0x140054014
lea rdx, str.HttpSendRequestA_failed:
lea rcx, [0x1400955a0]
call fcn.1400013d0
mov qword [rsp + 0x178], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x7c], eax
mov edx, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0x178]
call fcn.1400079c0
mov qword [rsp + 0x180], rax
lea rdx, [0x140004500]
mov rcx, qword [rsp + 0x180]
call fcn.140007bf0
jmp 0x140054043
lea rdx, str.Message_sent_successfully_
lea rcx, [0x140095470]
call fcn.1400013d0
mov qword [rsp + 0x188], rax
lea rdx, [0x140004500]
mov rcx, qword [rsp + 0x188]
call fcn.140007bf0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x190], rax
mov rcx, qword [rsp + 0x88]
call qword [rsp + 0x190]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x198], rax
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x198]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x1a0], rax
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rcx, [rsp + 0x1a8]
call fcn.140007450
nop
lea rcx, [rsp + 0x1c8]
call fcn.140007450
nop
lea rcx, [rsp + 0x1e8]
call fcn.140007450
add rsp, 0x278
ret