Function at 0x4022f2
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a4
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x487]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x48c], esi
mov byte [ebp - 0x488], bl
call fcn.005117f0
add esp, 0xc
push 0x7f
lea eax, [ebp - 0x87]
push ebx
push eax
mov byte [ebp - 0x88], bl
call fcn.005117f0
add esp, 0xc
mov edx, esi
call fcn.004c3b34
test eax, eax
jne 0x402484
push ebx
sub esp, 0x10
lea esi, [ebp + 8]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f0665
add esp, 0x14
test eax, eax
je 0x402484
lea esi, [ebp - 0x4a0]
call fcn.004f2729
sub esp, 0x10
mov edi, esp
lea esi, [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f0c6d
push eax
call fcn.0051209e
add esp, 0x24
cmp eax, 0x20
jg 0x402484
push dword [ebp - 0x48c]
mov ecx, 0x80
lea eax, [ebp - 0x88]
call fcn.004c3b66
pop ecx
call fcn.004c46fc
push ebx
push 1
push str.nuim808
push str.notes_user
push str.account_notes
push ecx
push ebx
call fcn.0048a45f
pop ecx
pop ecx
push eax
call fcn.00476c7e
mov esi, eax
add esp, 0x18
cmp esi, ebx
mov dword [ebp - 0x490], esi
je 0x402484
lea eax, [ebp - 0x488]
call fcn.004c3ab2
lea eax, [ebp - 0x88]
push eax
push str.SELECT_locationid_FROM_locations_WHERE_storeid_s_LIMIT_1
push esi
call fcn.00477efe
add esp, 0xc
test eax, eax
je 0x402437
push 1
push 9
push 0x3ff
lea eax, [ebp - 0x488]
push eax
push esi
call fcn.00477ff9
add esp, 0x14
lea eax, [ebp - 0x488]
push eax
call fcn.0045ffb2
cmp eax, ebx
pop ecx
mov dword [ebp - 0x48c], eax
lea esi, [ebp + 8]
jne 0x402495
push ebx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f0f28
add esp, 0x14
push eax
lea eax, [ebp - 0x88]
push eax
push str.:2:SetLastTillCountTimeSQL___s_____s___FAILED:_The_store_id_does_not_exist_in_the_database_
call fcn.004265da
add esp, 0xc
push dword [ebp - 0x490]
call fcn.00477b11
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret
push eax
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f14aa
add esp, 0x10
push eax
push str.UPDATE_locations_SET_stLastTillCount_s_WHERE_locationid_d
push dword [ebp - 0x490]
call fcn.00477efe
add esp, 0x10
test eax, eax
jne 0x4024fd
push dword [ebp - 0x490]
call fcn.00477b11
pop ecx
push dword [ebp - 0x48c]
lea esi, [ebp + 8]
push ebx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f0f28
add esp, 0x14
push eax
lea eax, [ebp - 0x88]
push eax
push str.:2:SetLastTillCountTimeSQL___s_____s___FAILED:_ExecuteODBCFormat_iLocationid_d__FAILED_
call fcn.004265da
add esp, 0x10
jmp 0x402484
push dword [ebp - 0x48c]
lea esi, [ebp + 8]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f14aa
add esp, 0x10
push eax
push str.UPDATE_installed_params_SET_stLastTillCount_s_WHERE_locationid_d
push dword [ebp - 0x490]
call fcn.00477efe
add esp, 0x10
test eax, eax
jne 0x40255f
push dword [ebp - 0x48c]
lea esi, [ebp + 8]
push ebx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f0f28
add esp, 0x14
push eax
lea eax, [ebp - 0x88]
push eax
push str.:2:SetLastTillCountTimeSQL___s_____s___EAP:_ExecuteODBCFormat_iLocationid_d__FAILED_to_duplicate_stLastTillCount.
call fcn.00426c01
add esp, 0x10
push dword [ebp - 0x490]
call fcn.00477b11
xor eax, eax
pop ecx
inc eax
jmp 0x402486