Function at 0x180022e80
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, [0x18002e314]
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 [0x180037c48]
test rax, rax
jne 0x180022f10
mov rax, qword [0x180037b90]
test rax, rax
jne 0x180022ef9
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180037b90], rax
lea rdx, str.HttpOpenRequestA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037c48], 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 0x180022f51
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18002372b
mov rax, qword [0x180037bc8]
mov dword [rbp + 0x7f], 0x7530
test rax, rax
jne 0x180022f9b
mov rax, qword [0x180037b90]
test rax, rax
jne 0x180022f84
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180037b90], rax
lea rdx, str.InternetSetOptionA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037bc8], rax
mov r9d, 4
lea r8, [rbp + 0x7f]
mov rcx, r13
lea edx, [r9 - 2]
call rax
mov rax, qword [0x180037bc8]
test rax, rax
jne 0x180022ff1
mov rax, qword [0x180037b90]
test rax, rax
jne 0x180022fda
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180037b90], rax
lea rdx, str.InternetSetOptionA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037bc8], rax
mov r9d, 4
lea r8, [rbp + 0x7f]
mov rcx, r13
lea edx, [r9 + 2]
call rax
mov rax, qword [0x180037bc8]
test rax, rax
jne 0x180023047
mov rax, qword [0x180037b90]
test rax, rax
jne 0x180023030
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180037b90], rax
lea rdx, str.InternetSetOptionA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037bc8], 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.180023d20
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.180023d20
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.180023d20
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.180023d20
test ebx, ebx
je 0x18002313d
cmp ebx, 1
jne 0x180023134
mov eax, dword [rdi + 0x208]
mov r15d, dword [rdi + 0x1a4]
cmp eax, r15d
cmovl r15d, eax
jmp 0x180023140
cmp ebx, 2
jne 0x1800236d9
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.1800252b0
mov rax, qword [0x180037c50]
mov dword [rbp - 0x39], SQLMoreResults
mov dword [rbp - 0xd], r15d
mov dword [rbp - 0x11], r12d
test rax, rax
jne 0x1800231b1
mov rax, qword [0x180037b90]
test rax, rax
jne 0x18002319a
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180037b90], rax
lea rdx, str.HttpSendRequestExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037c50], 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 0x1800236d1
test r15d, r15d
je 0x180023236
mov rax, qword [0x180037c40]
mov rbx, qword [rdi + 0x1f0]
test rax, rax
jne 0x18002321c
mov rax, qword [0x180037b90]
test rax, rax
jne 0x180023205
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180037b90], rax
lea rdx, str.InternetWriteFile
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037c40], rax
lea r9, [rbp - 0x51]
mov r8d, r15d
mov rdx, rbx
mov rcx, r13
call rax
test eax, eax
je 0x1800236d1
mov ebx, dword [rbp - 0x69]
mov rax, qword [0x180037c58]
test rax, rax
jne 0x180023279
mov rax, qword [0x180037b90]
test rax, rax
jne 0x180023262
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180037b90], rax
lea rdx, str.HttpEndRequestA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037c58], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call rax
test eax, eax
jne 0x1800232a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x2f00
je 0x180023150
jmp 0x1800236d9
lea r9, [rbp - 0x65]
lea r8, [0x18002e1b8]
mov edx, setsockopt
mov rcx, r13
call fcn.180023be0
mov esi, eax
test eax, eax
jne 0x1800236d9
mov eax, dword [rbp - 0x65]
cmp eax, 0xc8
je 0x1800233f0
cmp eax, 0x197
jne 0x1800233e6
mov eax, ebx
inc ebx
mov dword [rbp - 0x69], ebx
cmp eax, 3
jg 0x1800233dc
cmp byte [rdi + 0x120], r12b
je 0x1800233dc
cmp byte [rdi + 0x160], r12b
je 0x1800233dc
lea rcx, [rdi + 0x120]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r14d, eax
mov rax, qword [0x180037bc8]
test rax, rax
jne 0x18002335a
mov rax, qword [0x180037b90]
test rax, rax
jne 0x180023343
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180037b90], rax
lea rdx, str.InternetSetOptionA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037bc8], 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 [0x180037bc8]
test rax, rax
jne 0x1800233c0
mov rax, qword [0x180037b90]
test rax, rax
jne 0x1800233a9
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180037b90], rax
lea rdx, str.InternetSetOptionA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037bc8], rax
lea r8, [rdi + 0x160]
mov r9d, ebx
mov edx, 0x2c
mov rcx, r13
call rax
mov ebx, dword [rbp - 0x69]
jmp 0x180023150
mov esi, 0x2eee
jmp 0x1800236d9
mov esi, 0x2ee4
jmp 0x1800236d9
lea r9, [rbp - 0x55]
lea r8, [0x18002e1b8]
mov edx, 5
mov rcx, r13
call fcn.180023be0
mov esi, eax
test eax, eax
jne 0x1800236d9
lea r9, [rbp - 0x61]
lea r8, str.X_Session
mov edx, 0xffff
mov rcx, r13
call fcn.180023be0
mov esi, eax
test eax, eax
jne 0x1800236d9
lea r9, [rbp - 0x65]
lea r8, str.X_Status
mov edx, 0xffff
mov rcx, r13
call fcn.180023be0
mov esi, eax
test eax, eax
jne 0x1800236d9
lea r9, [rbp - 0x5d]
lea r8, str.X_Size
mov edx, 0xffff
mov rcx, r13
call fcn.180023be0
mov esi, eax
test eax, eax
jne 0x1800236d9
lea r9, [rbp - 0x69]
lea r8, str.X_Sn
mov edx, 0xffff
mov rcx, r13
call fcn.180023be0
mov esi, eax
test eax, eax
jne 0x1800236d9
cmp dword [rbp - 0x65], 1
je 0x1800234d6
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.1800227f0
jmp 0x1800236d9
mov eax, dword [rbp - 0x5d]
mov dword [rdi + 0x1a0], r12d
mov dword [rdi + 0x1a4], eax
mov eax, dword [rbp - 0x59]
test eax, eax
jne 0x18002352a
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 0x1800235c0
mov dword [rdi + 0x1b4], 1
jmp 0x1800235c0
cmp eax, 1
jne 0x18002359b
mov eax, dword [rdi + 0x1b0]
mov r14d, dword [rbp - 0x69]
add eax, 2
cmp eax, r14d
je 0x18002354b
mov esi, reloc.ODBC32.dll_SQLFetch
jmp 0x1800236d9
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.18002525c
sub dword [rdi + 0x208], r15d
lea rcx, [rdi + 0x1c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rdi
call fcn.180022880
jmp 0x1800235cd
cmp eax, 2
jne 0x1800235cd
lea rcx, [rdi + 0x1c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rdi + 0x1b4], 2
jne 0x1800235c0
mov dword [rdi + 0x1b4], 4
lea rcx, [rdi + 0x1c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r14, qword [rbp + 0x6f]
mov rax, qword [0x180037bc0]
test rax, rax
jne 0x180023614
mov rax, qword [0x180037b90]
test rax, rax
jne 0x1800235fd
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180037b90], rax
lea rdx, str.InternetReadFile
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037bc0], rax
lea r9, [rbp - 0x69]
mov r8d, 0x2000
mov rdx, r14
mov rcx, r13
call rax
test eax, eax
je 0x1800236d1
cmp dword [rbp - 0x69], r12d
je 0x180023689
cmp dword [rdi + 0x1b4], 1
jne 0x1800235d1
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.18002525c
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.180022940
jmp 0x1800235d1
test r15d, r15d
je 0x18002369a
mov dword [rdi + 0x1b8], 1
jmp 0x1800236d9
cmp dword [rbp - 0x55], r12d
je 0x1800236a9
mov dword [rdi + 0x1b8], r12d
jmp 0x1800236d9
cmp dword [rdi + 0x1b8], r12d
je 0x1800236d9
cmp dword [rdi + 0x208], 0
jne 0x1800236d9
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
inc r12d
cmp r12d, 0xa
jl 0x1800236b2
jmp 0x1800236d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rax, qword [0x180037bd0]
mov r15, qword [rsp + 0x110]
test rax, rax
jne 0x180023724
mov rax, qword [0x180037b90]
test rax, rax
jne 0x18002370d
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180037b90], rax
lea rdx, str.InternetCloseHandle
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037bd0], 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