Function at 0x18001a630
Capabilities:
Check http status code
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov r8, rcx
lea rax, [0x18002474c]
xor r12d, r12d
lea rcx, [rbp - 1]
lea rdx, str._update_id_8.8x
mov esi, r12d
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], r12
call qword [sym.imp.USER32.dll_wsprintfA]
mov rax, qword [0x18002a970]
test rax, rax
jne 0x18001a6c0
mov rax, qword [0x18002a8b8]
test rax, rax
jne 0x18001a6a9
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18002a8b8], rax
lea rdx, str.HttpOpenRequestA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a970], rax
mov qword [rsp + 0x38], r12
lea rcx, [rbp - 0x49]
mov dword [rsp + 0x30], 0x84400100
mov qword [rsp + 0x28], rcx
lea r8, [rbp - 1]
lea rdx, str.POST
mov rcx, rbx
xor r9d, r9d
mov qword [rsp + 0x20], r12
call rax
mov r13, rax
test rax, rax
jne 0x18001a701
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18001aedb
mov rax, qword [0x18002a8f0]
mov dword [rbp + 0x7f], 0x7530
test rax, rax
jne 0x18001a74b
mov rax, qword [0x18002a8b8]
test rax, rax
jne 0x18001a734
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18002a8b8], rax
lea rdx, str.InternetSetOptionA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a8f0], rax
mov r9d, 4
lea r8, [rbp + 0x7f]
mov rcx, r13
lea edx, [r9 - 2]
call rax
mov rax, qword [0x18002a8f0]
test rax, rax
jne 0x18001a7a1
mov rax, qword [0x18002a8b8]
test rax, rax
jne 0x18001a78a
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18002a8b8], rax
lea rdx, str.InternetSetOptionA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a8f0], rax
mov r9d, 4
lea r8, [rbp + 0x7f]
mov rcx, r13
lea edx, [r9 + 2]
call rax
mov rax, qword [0x18002a8f0]
test rax, rax
jne 0x18001a7f7
mov rax, qword [0x18002a8b8]
test rax, rax
jne 0x18001a7e0
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18002a8b8], rax
lea rdx, str.InternetSetOptionA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a8f0], rax
mov r9d, 4
lea r8, [rbp + 0x7f]
mov rcx, r13
lea edx, [r9 + 1]
mov qword [rsp + 0x110], r15
call rax
mov ebx, dword [rdi + 0x1b4]
mov r9d, dword [rdi + 0x1ac]
lea r8, str.X_Session
lea rdx, str._s:__d
mov rcx, r14
mov dword [rbp - 0x59], ebx
call qword [sym.imp.USER32.dll_wsprintfA]
mov rdx, r14
mov rcx, r13
call fcn.18001b4e0
lea r8, str.X_Status
lea rdx, str._s:__d
mov r9d, ebx
mov rcx, r14
call qword [sym.imp.USER32.dll_wsprintfA]
mov rdx, r14
mov rcx, r13
call fcn.18001b4e0
mov r9d, dword [rdi + 0x210]
lea r8, str.X_Size
sub r9d, dword [rdi + 0x230]
lea rdx, str._s:__d
mov rcx, r14
call qword [sym.imp.USER32.dll_wsprintfA]
mov rdx, r14
mov rcx, r13
call fcn.18001b4e0
mov r9d, dword [rdi + 0x1b0]
lea r8, str.X_Sn
lea rdx, str._s:__d
inc r9d
mov rcx, r14
call qword [sym.imp.USER32.dll_wsprintfA]
mov rdx, r14
mov rcx, r13
call fcn.18001b4e0
test ebx, ebx
je 0x18001a8ed
cmp ebx, 1
jne 0x18001a8e4
mov eax, dword [rdi + 0x208]
mov r15d, dword [rdi + 0x1a4]
cmp eax, r15d
cmovl r15d, eax
jmp 0x18001a8f0
cmp ebx, 2
jne 0x18001ae89
mov r15d, r12d
mov ebx, r12d
mov dword [rbp - 0x69], ebx
nop word [rax + rax]
xor edx, edx
lea rcx, [rbp - 0x39]
lea r8d, [rdx + 0x38]
call fcn.18001ca58
mov rax, qword [0x18002a978]
mov dword [rbp - 0x39], SQLMoreResults
mov dword [rbp - 0xd], r15d
mov dword [rbp - 0x11], r12d
test rax, rax
jne 0x18001a961
mov rax, qword [0x18002a8b8]
test rax, rax
jne 0x18001a94a
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18002a8b8], rax
lea rdx, str.HttpSendRequestExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a978], rax
lea rdx, [rbp - 0x39]
xor r9d, r9d
xor r8d, r8d
mov rcx, r13
mov qword [rsp + 0x20], r12
call rax
test eax, eax
je 0x18001ae81
test r15d, r15d
je 0x18001a9e6
mov rax, qword [0x18002a968]
mov rbx, qword [rdi + 0x1f0]
test rax, rax
jne 0x18001a9cc
mov rax, qword [0x18002a8b8]
test rax, rax
jne 0x18001a9b5
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18002a8b8], rax
lea rdx, str.InternetWriteFile
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a968], rax
lea r9, [rbp - 0x51]
mov r8d, r15d
mov rdx, rbx
mov rcx, r13
call rax
test eax, eax
je 0x18001ae81
mov ebx, dword [rbp - 0x69]
mov rax, qword [0x18002a980]
test rax, rax
jne 0x18001aa29
mov rax, qword [0x18002a8b8]
test rax, rax
jne 0x18001aa12
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18002a8b8], rax
lea rdx, str.HttpEndRequestA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a980], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call rax
test eax, eax
jne 0x18001aa52
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x2f00
je 0x18001a900
jmp 0x18001ae89
lea r9, [rbp - 0x65]
lea r8, [0x1800245f0]
mov edx, setsockopt
mov rcx, r13
call fcn.18001b3a0
mov esi, eax
test eax, eax
jne 0x18001ae89
mov eax, dword [rbp - 0x65]
cmp eax, 0xc8
je 0x18001aba0
cmp eax, 0x197
jne 0x18001ab96
mov eax, ebx
inc ebx
mov dword [rbp - 0x69], ebx
cmp eax, 3
jg 0x18001ab8c
cmp byte [rdi + 0x120], r12b
je 0x18001ab8c
cmp byte [rdi + 0x160], r12b
je 0x18001ab8c
lea rcx, [rdi + 0x120]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r14d, eax
mov rax, qword [0x18002a8f0]
test rax, rax
jne 0x18001ab0a
mov rax, qword [0x18002a8b8]
test rax, rax
jne 0x18001aaf3
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18002a8b8], rax
lea rdx, str.InternetSetOptionA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a8f0], rax
lea r8, [rdi + 0x120]
mov r9d, r14d
mov edx, reloc.ODBC32.dll_SQLGetData
mov rcx, r13
call rax
lea rcx, [rdi + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rax, qword [0x18002a8f0]
test rax, rax
jne 0x18001ab70
mov rax, qword [0x18002a8b8]
test rax, rax
jne 0x18001ab59
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18002a8b8], rax
lea rdx, str.InternetSetOptionA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a8f0], rax
lea r8, [rdi + 0x160]
mov r9d, ebx
mov edx, 0x2c
mov rcx, r13
call rax
mov ebx, dword [rbp - 0x69]
jmp 0x18001a900
mov esi, 0x2eee
jmp 0x18001ae89
mov esi, 0x2ee4
jmp 0x18001ae89
lea r9, [rbp - 0x55]
lea r8, [0x1800245f0]
mov edx, 5
mov rcx, r13
call fcn.18001b3a0
mov esi, eax
test eax, eax
jne 0x18001ae89
lea r9, [rbp - 0x61]
lea r8, str.X_Session
mov edx, 0xffff
mov rcx, r13
call fcn.18001b3a0
mov esi, eax
test eax, eax
jne 0x18001ae89
lea r9, [rbp - 0x65]
lea r8, str.X_Status
mov edx, 0xffff
mov rcx, r13
call fcn.18001b3a0
mov esi, eax
test eax, eax
jne 0x18001ae89
lea r9, [rbp - 0x5d]
lea r8, str.X_Size
mov edx, 0xffff
mov rcx, r13
call fcn.18001b3a0
mov esi, eax
test eax, eax
jne 0x18001ae89
lea r9, [rbp - 0x69]
lea r8, str.X_Sn
mov edx, 0xffff
mov rcx, r13
call fcn.18001b3a0
mov esi, eax
test eax, eax
jne 0x18001ae89
cmp dword [rbp - 0x65], 1
je 0x18001ac86
lea rcx, [rdi + 0x1c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rdi + 0x1c0]
mov dword [rdi + 0x1b4], 4
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, 0x2746
mov rcx, rdi
call fcn.180019fa0
jmp 0x18001ae89
mov eax, dword [rbp - 0x5d]
mov dword [rdi + 0x1a0], r12d
mov dword [rdi + 0x1a4], eax
mov eax, dword [rbp - 0x59]
test eax, eax
jne 0x18001acda
lea rcx, [rdi + 0x1c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11d, dword [rbp - 0x61]
mov eax, dword [rbp - 0x69]
mov dword [rdi + 0x1ac], r11d
mov dword [rdi + 0x1b0], eax
cmp dword [rdi + 0x1b4], r12d
jne 0x18001ad70
mov dword [rdi + 0x1b4], 1
jmp 0x18001ad70
cmp eax, 1
jne 0x18001ad4b
mov eax, dword [rdi + 0x1b0]
mov r14d, dword [rbp - 0x69]
add eax, 2
cmp eax, r14d
je 0x18001acfb
mov esi, reloc.ODBC32.dll_SQLFetch
jmp 0x18001ae89
lea rcx, [rdi + 0x1c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rdi + 0x208]
mov rcx, qword [rdi + 0x1f0]
sub eax, r15d
movsxd rdx, r15d
mov dword [rdi + 0x1b0], r14d
movsxd r8, eax
add rdx, rcx
call fcn.18001ca04
sub dword [rdi + 0x208], r15d
lea rcx, [rdi + 0x1c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rdi
call fcn.18001a030
jmp 0x18001ad7d
cmp eax, 2
jne 0x18001ad7d
lea rcx, [rdi + 0x1c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rdi + 0x1b4], 2
jne 0x18001ad70
mov dword [rdi + 0x1b4], 4
lea rcx, [rdi + 0x1c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r14, qword [rbp + 0x6f]
mov rax, qword [0x18002a8e8]
test rax, rax
jne 0x18001adc4
mov rax, qword [0x18002a8b8]
test rax, rax
jne 0x18001adad
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18002a8b8], rax
lea rdx, str.InternetReadFile
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a8e8], rax
lea r9, [rbp - 0x69]
mov r8d, 0x2000
mov rdx, r14
mov rcx, r13
call rax
test eax, eax
je 0x18001ae81
cmp dword [rbp - 0x69], r12d
je 0x18001ae39
cmp dword [rdi + 0x1b4], 1
jne 0x18001ad81
lea rcx, [rdi + 0x1c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movsxd rcx, dword [rdi + 0x230]
movsxd r8, dword [rbp - 0x69]
add rcx, qword [rdi + 0x218]
mov rdx, r14
call fcn.18001ca04
mov r11d, dword [rbp - 0x69]
lea rcx, [rdi + 0x1c0]
add dword [rdi + 0x230], r11d
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rdi
call fcn.18001a0f0
jmp 0x18001ad81
test r15d, r15d
je 0x18001ae4a
mov dword [rdi + 0x1b8], 1
jmp 0x18001ae89
cmp dword [rbp - 0x55], r12d
je 0x18001ae59
mov dword [rdi + 0x1b8], r12d
jmp 0x18001ae89
cmp dword [rdi + 0x1b8], r12d
je 0x18001ae89
cmp dword [rdi + 0x208], 0
jne 0x18001ae89
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
inc r12d
cmp r12d, 0xa
jl 0x18001ae62
jmp 0x18001ae89
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rax, qword [0x18002a8f8]
mov r15, qword [rsp + 0x110]
test rax, rax
jne 0x18001aed4
mov rax, qword [0x18002a8b8]
test rax, rax
jne 0x18001aebd
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18002a8b8], rax
lea rdx, str.InternetCloseHandle
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a8f8], rax
mov rcx, r13
call rax
mov eax, esi
add rsp, 0xd0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret