Function at 0x401ec0
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
mov rdi, qword [0x00410928]
mov qword [rsp + 0x110], rcx
lea rbx, [rsp + 0xa0]
mov qword [rsp + 0x118], rdx
lea rcx, str.SELECT__FROM_customer_WHERE_carnum_
mov edx, 0x25
mov dword [rsp + 0x120], r8d
call rdi
mov rcx, rbx
mov rbp, qword [0x00410a98]
mov qword [rsp + 0x68], rax
call rbp
mov rax, qword [0x00410850]
lea r15, [rsp + 0x98]
mov r8, rbx
lea rsi, [rsp + 0x70]
mov rdx, r15
mov rcx, rsi
mov qword [rsp + 0x98], rax
mov rax, qword [0x00410ae0]
mov qword [rsp + 0x50], rax
call rax
mov rcx, qword [rsp + 0x98]
mov eax, dword [rcx]
test eax, eax
je 0x402270
cmp eax, 0xffffffff
je 0x401f75
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0x98]
je 0x402270
mov rcx, rbx
mov r12, qword [0x00410aa0]
call r12
lea rax, [rsp + 0x68]
mov rcx, rsi
mov r13, qword [0x00410ad8]
mov qword [rsp + 0x58], rax
mov rdx, rax
call r13
mov rax, qword [0x00410950]
mov rcx, rbx
mov rdx, qword [rsp + 0x118]
mov qword [rsp + 0x40], rax
call rax
mov rax, qword [0x00410ab8]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x38], rax
call rax
mov rcx, rbx
mov r14, qword [0x00410960]
call r14
mov rax, qword [0x00410ac8]
mov rcx, rsi
mov qword [rsp + 0x48], rax
call rax
mov rcx, rsi
call qword [0x00410ad0]
test al, al
je 0x402290
lea rcx, str.UPDATE_customer_SET_crk__time__WHERE_carnum_
mov edx, 0x2f
call rdi
mov qword [rsp + 0x78], rax
mov rcx, rbx
call rbp
mov rax, qword [0x00410850]
lea rbp, [rsp + 0x80]
mov r8, rbx
mov rdx, r15
mov rcx, rbp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x50]
call rax
mov rcx, qword [rsp + 0x98]
mov eax, dword [rcx]
test eax, eax
je 0x402060
cmp eax, 0xffffffff
je 0x402071
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0x98]
jne 0x402071
nop
mov r8d, 8
mov edx, 2
call qword [0x00410848]
mov rcx, rbx
call r12
lea rax, [rsp + 0x78]
mov rcx, rbp
mov qword [rsp + 0x50], rax
mov rdx, rax
call r13
mov edx, dword [rsp + 0x120]
mov rcx, rbx
call qword [0x00410958]
mov r8d, 1
mov rdx, rbx
mov rcx, rbp
mov rax, qword [rsp + 0x38]
call rax
lea r12, [rsp + 0x88]
mov rcx, rbx
call r14
mov rcx, r12
call qword [0x00410970]
lea rcx, str.yyyy:MM:dd:hh:mm:ss:zzz
mov edx, 0x17
call rdi
lea r13, [rsp + 0x90]
mov qword [rsp + 0x90], rax
mov rdx, r12
mov rcx, r15
mov r8, r13
call qword [0x004109e8]
mov rdx, r15
mov rcx, rbx
mov r10, qword [rsp + 0x40]
call r10
mov r8d, 1
mov rdx, rbx
mov rcx, rbp
mov rax, qword [rsp + 0x38]
call rax
mov rcx, rbx
call r14
mov rcx, qword [rsp + 0x98]
mov eax, dword [rcx]
test eax, eax
je 0x4023c0
cmp eax, 0xffffffff
je 0x402141
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0x98]
je 0x4023c0
mov rcx, qword [rsp + 0x90]
mov eax, dword [rcx]
test eax, eax
je 0x4023a0
cmp eax, 0xffffffff
je 0x40216a
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0x90]
je 0x4023a0
mov rcx, r12
call qword [0x00410980]
mov rdx, qword [rsp + 0x118]
mov rcx, rbx
mov rax, qword [rsp + 0x40]
call rax
mov r8d, 1
mov rdx, rbx
mov rcx, rbp
mov rax, qword [rsp + 0x38]
call rax
mov rcx, rbx
call r14
mov rcx, rbp
mov rax, qword [rsp + 0x48]
call rax
test al, al
je 0x402400
lea rcx, [0x0040b205]
mov edx, 6
call rdi
mov qword [rsp + 0xa0], rax
mov edx, 6
lea rcx, [0x0040b2c0]
call rdi
mov qword [rsp + 0x98], rax
mov r9d, 0x400
mov r8, rbx
mov rdx, r15
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x110]
call qword [0x00410b88]
mov rcx, qword [rsp + 0x98]
mov eax, dword [rcx]
test eax, eax
je 0x402530
cmp eax, 0xffffffff
je 0x402227
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0x98]
je 0x402530
mov rcx, qword [rsp + 0xa0]
mov eax, dword [rcx]
test eax, eax
je 0x402250
cmp eax, 0xffffffff
je 0x4024a3
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0xa0]
jne 0x4024a3
mov r8d, 8
mov edx, 2
call qword [0x00410848]
jmp 0x4024a3
mov r8d, 8
mov edx, 2
call qword [0x00410848]
jmp 0x401f75
lea rcx, [0x0040b2c7]
mov edx, 0xf
call rdi
mov qword [rsp + 0xa0], rax
mov edx, 6
lea rcx, [0x0040b2d7]
call rdi
mov qword [rsp + 0x98], rax
mov r9d, 0x400
mov r8, rbx
mov rdx, r15
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x110]
call qword [0x00410b88]
mov rcx, qword [rsp + 0x98]
mov eax, dword [rcx]
test eax, eax
je 0x402300
cmp eax, 0xffffffff
je 0x402311
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0x98]
jne 0x402311
nop
mov r8d, 8
mov edx, 2
call qword [0x00410848]
mov rcx, qword [rsp + 0xa0]
mov eax, dword [rcx]
test eax, eax
je 0x4023e0
cmp eax, 0xffffffff
mov rbx, qword [0x00410ae8]
je 0x402350
mov eax, 0xffffffff
lock xadd dword [rcx], eax
mov rbx, qword [0x00410ae8]
mov rcx, qword [rsp + 0xa0]
cmp eax, 1
je 0x4023e0
mov rcx, rsi
call rbx
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x402384
cmp eax, 0xffffffff
je 0x402370
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0x68]
je 0x402384
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r8d, 8
mov edx, 2
call qword [0x00410848]
jmp 0x402370
mov r8d, 8
mov edx, 2
call qword [0x00410848]
jmp 0x40216a
mov r8d, 8
mov edx, 2
call qword [0x00410848]
jmp 0x402141
mov r8d, 8
mov edx, 2
call qword [0x00410848]
mov rbx, qword [0x00410ae8]
jmp 0x402350
mov rdx, rbp
mov rcx, rbx
call qword [0x00410b10]
mov rdx, rbx
mov rcx, r13
call qword [0x00410af8]
lea rcx, [0x0040b2c0]
mov edx, 6
call rdi
mov qword [rsp + 0x98], rax
mov r9d, 0x400
mov r8, r13
mov rdx, r15
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x110]
call qword [0x00410b88]
mov rcx, qword [rsp + 0x98]
mov eax, dword [rcx]
test eax, eax
je 0x4024f0
cmp eax, 0xffffffff
je 0x402475
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0x98]
je 0x4024f0
mov rcx, qword [rsp + 0x90]
mov eax, dword [rcx]
test eax, eax
je 0x402513
cmp eax, 0xffffffff
je 0x40249a
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0x90]
je 0x402513
mov rcx, rbx
call qword [0x00410ab0]
mov rcx, rbp
mov rbx, qword [0x00410ae8]
call rbx
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x4024d2
cmp eax, 0xffffffff
je 0x402350
lock sub dword [rcx], 1
mov rcx, qword [rsp + 0x78]
jne 0x402350
mov r8d, 8
mov edx, 2
call qword [0x00410848]
jmp 0x402350
mov r8d, 8
mov edx, 2
call qword [0x00410848]
mov rcx, qword [rsp + 0x90]
mov eax, dword [rcx]
test eax, eax
jne 0x402487
mov r8d, 8
mov edx, 2
call qword [0x00410848]
jmp 0x40249a
mov r8d, 8
mov edx, 2
call qword [0x00410848]
jmp 0x402227