Function at 0x428490
Capabilities:
Check for time delay via gettickcount
Reference sql statements

Disassembly:
mov eax, dword [0x476ecf4]
sub esp, 0x854
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x4284b2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x854
ret
lea eax, [esp + 0x3c]
push esi
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x44]
push ecx
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.004265e0
add esp, 0x24
test eax, eax
jne 0x4284f2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x854
ret
push 0x46054d8
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov edi, dword [esp + 0x86c]
mov ebx, dword [esp + 0x868]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [edi + 1]
cmp eax, 4
mov dword [esp + 0x1c], eax
ja case.default.0x428530
jmp dword [eax*4 + 0x428764]
push ebx
push 0x476ed38
lea eax, [esp + 0x6c]
push str.SELECT_fl125khz_flmifare_FROM_GATC__sBADGEWRITE_WHERE_codtessera_s
push eax
jmp 0x428559
push ebx
push 0x476ed38
lea ecx, [esp + 0x6c]
push str.SELECT_fl125khz_flmifare_FROM_GATC__sZAQPBADGEVIS_WHERE_hextessera_s
push ecx
call ebp
add esp, 0x10
push 1
lea edx, [esp + 0x68]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
xor eax, eax
test esi, esi
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x4286c8
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
test al, al
jne 0x4286c8
mov al, byte [esi + 4]
test al, al
jne 0x4285c8
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x10]
mov edx, dword [esi]
push 2
fstp st(0)
mov ecx, esi
call dword [edx + 0x10]
fstp st(0)
mov dword [esp + 0x14], 1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
test esi, esi
je 0x4285db
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4286c8
mov eax, dword [esp + 0x1c]
cmp eax, 4
ja case.default.0x4285f4
jmp dword [eax*4 + 0x428778]
push ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x476ed38
lea eax, [esp + 0x70]
push str.UPDATE_GATC__sBADGEWRITE_SET_cpccchk_010lu_WHERE_codtessera_s
push eax
call ebp
add esp, 0x14
jmp case.default.0x4285f4
mov edx, dword [0x476edd0]
lea ecx, [esp + 0x3c]
push ebx
push ecx
push edx
push 0x476ed38
lea eax, [esp + 0x74]
push str.UPDATE_GATC__sBADGEWRITE_SET_idkcom_d_datora_s_fl125khz1_cpccchk__125KHZ___WHERE_codtessera_s
push eax
call ebp
add esp, 0x18
jmp case.default.0x4285f4
mov edx, dword [0x476edd0]
lea ecx, [esp + 0x3c]
push ebx
push ecx
push edx
push 0x476ed38
lea eax, [esp + 0x74]
push str.UPDATE_GATC__sBADGEWRITE_SET_idkcom_d_datora_s_flmifare1_cpccchk__MIFARE___WHERE_codtessera_s
push eax
call ebp
add esp, 0x18
jmp case.default.0x4285f4
push ebx
push 0x476ed38
lea ecx, [esp + 0x6c]
push str.UPDATE_GATC__sZAQPBADGEVIS_SET_fl125khz1_WHERE_hextessera_s
push ecx
jmp 0x428681
push ebx
push 0x476ed38
lea edx, [esp + 0x6c]
push str.UPDATE_GATC__sZAQPBADGEVIS_SET_flmifare1_WHERE_hextessera_s
push edx
call ebp
add esp, 0x10
sub esp, 0x10
lea eax, [esp + 0x74]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.00445210
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [0x516f90]
cmp eax, 1
jne 0x4286c1
mov eax, dword [ecx]
call dword [eax + 0x18]
mov dword [esp + 0x10], 1
jmp 0x428747
mov edx, dword [ecx]
call dword [edx + 0x1c]
jmp 0x428747
cmp edi, 0xffffffff
jl 0x428747
cmp edi, 1
jg 0x428747
xor eax, eax
cmp edi, 1
sete al
xor ecx, ecx
push eax
test edi, edi
sete cl
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [esp + 0x44]
push eax
mov eax, dword [0x476edd0]
push edx
push ebx
push eax
push 0x476ed38
lea ecx, [esp + 0x80]
push str.INSERT_INTO_GATC__sBADGEWRITE__idkcom_codtessera_datora_cpccchk_fl125khz_flmifare__VALUES___d__s__s__010lu__d__d_
push ecx
call ebp
add esp, 0x14
lea edx, [esp + 0x74]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [0x516f90]
cmp eax, 1
jne 0x428742
mov edx, dword [ecx]
call dword [edx + 0x18]
mov dword [esp + 0x10], 1
jmp 0x428747
mov eax, dword [ecx]
call dword [eax + 0x1c]
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x854
ret