Function at 0x40285d
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a4
mov eax, dword [0x5f2e68]
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.005306b0
add esp, 0xc
push 0x7f
lea eax, [ebp - 0x87]
push ebx
push eax
mov byte [ebp - 0x88], bl
call fcn.005306b0
add esp, 0xc
mov edx, esi
call fcn.004ccc0d
test eax, eax
jne 0x4029ef
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.004f9794
add esp, 0x14
test eax, eax
je 0x4029ef
lea esi, [ebp - 0x4a0]
call fcn.004fb94f
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.004f9deb
push eax
call fcn.0053146e
add esp, 0x24
cmp eax, 0x20
jg 0x4029ef
push dword [ebp - 0x48c]
mov ecx, 0x80
lea eax, [ebp - 0x88]
call fcn.004ccc3f
pop ecx
call fcn.004cd7d5
push ebx
push 1
push str.nuim808
push str.notes_user
push str.account_notes
push ecx
push ebx
call fcn.004934c9
pop ecx
pop ecx
push eax
call fcn.0047f8a9
mov esi, eax
add esp, 0x18
cmp esi, ebx
mov dword [ebp - 0x490], esi
je 0x4029ef
lea eax, [ebp - 0x488]
call fcn.004ccb8b
lea eax, [ebp - 0x88]
push eax
push str.SELECT_locationid_FROM_locations_WHERE_storeid_s_LIMIT_1
push esi
call fcn.00480b29
add esp, 0xc
test eax, eax
je 0x4029a2
push 1
push 9
push 0x3ff
lea eax, [ebp - 0x488]
push eax
push esi
call fcn.00480c24
add esp, 0x14
lea eax, [ebp - 0x488]
push eax
call fcn.0046881a
cmp eax, ebx
pop ecx
mov dword [ebp - 0x48c], eax
lea esi, [ebp + 8]
jne 0x402a00
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.004fa0a6
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.0042b70b
add esp, 0xc
push dword [ebp - 0x490]
call fcn.0048073c
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
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.004fa628
add esp, 0x10
push eax
push str.UPDATE_locations_SET_stLastTillCount_s_WHERE_locationid_d
push dword [ebp - 0x490]
call fcn.00480b29
add esp, 0x10
test eax, eax
jne 0x402a68
push dword [ebp - 0x490]
call fcn.0048073c
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.004fa0a6
add esp, 0x14
push eax
lea eax, [ebp - 0x88]
push eax
push str.:2:SetLastTillCountTimeSQL___s_____s___FAILED:_ExecuteODBCFormat_iLocationid_d__FAILED_
call fcn.0042b70b
add esp, 0x10
jmp 0x4029ef
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.004fa628
add esp, 0x10
push eax
push str.UPDATE_installed_params_SET_stLastTillCount_s_WHERE_locationid_d
push dword [ebp - 0x490]
call fcn.00480b29
add esp, 0x10
test eax, eax
jne 0x402aca
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.004fa0a6
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.0042bd38
add esp, 0x10
push dword [ebp - 0x490]
call fcn.0048073c
xor eax, eax
pop ecx
inc eax
jmp 0x4029f1