Function at 0x460590
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3a4d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x1c], ecx
mov al, byte [edi]
inc edi
movzx esi, al
lea eax, [esi + 1]
push eax
call fcn.004622fd
push esi
mov ebx, eax
push edi
push ebx
mov dword [ebp - 0x14], ebx
call fcn.004760e0
add edi, esi
mov byte [ebx + esi], 0
movzx esi, byte [edi]
inc edi
lea eax, [esi + 1]
push eax
call fcn.004622fd
push esi
mov ebx, eax
push edi
push ebx
mov dword [ebp - 0x18], ebx
call fcn.004760e0
add edi, esi
mov byte [ebx + esi], 0
movzx esi, byte [edi]
inc edi
lea eax, [esi + 1]
push eax
call fcn.004622fd
push esi
mov ebx, eax
push edi
push ebx
call fcn.004760e0
push 1
mov byte [ebx + esi], 0
call fcn.0047ced4
push eax
call fcn.0047d395
push 0x4d2dd8
mov dword [ebp - 0x20], 0x4d2dd8
call fcn.00461a04
add esp, 0x3c
test eax, eax
jne 0x46089c
mov eax, dword [0x4d2e04]
cmp eax, 0x7fffffff
je 0x4608a3
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
push 0
push eax
push 0xffffffffffffffff
push str.SELECT_CDK_FROM_CDK_WHERE_CDK____
push dword [0x4d1308]
mov dword [ebp - 0x10], 0
call esi
add esp, 0x14
test eax, eax
jne 0x4606dd
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x460680
push 0xffffffffffffffff
sub ecx, edx
push ecx
push ebx
push 1
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_text]
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x18
cmp eax, 0x64
je 0x4606dd
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov ecx, dword [ebp - 0x1c]
mov edx, 2
call fcn.004604f0
push dword [ebp - 0x14]
call fcn.00462046
push dword [ebp - 0x18]
call fcn.00462046
push ebx
call fcn.00462046
add esp, 0x10
jmp 0x460877
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0xffffffffffffffff
push str.INSERT_INTO_User__Name__Password__VALUES______
push dword [0x4d1308]
call esi
mov edi, dword [ebp - 0x14]
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x46075c
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x460713
push 0xffffffffffffffff
sub ecx, edx
push ecx
push edi
push 1
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_text]
mov esi, dword [ebp - 0x18]
add esp, 0x14
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x460736
push 0xffffffffffffffff
sub ecx, edx
push ecx
push esi
push 2
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_blob]
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x18
mov esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
xor eax, eax
add esp, 4
cmp esi, 0x65
setne al
movzx eax, ax
mov dword [ebp - 0x14], eax
jne 0x460856
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
lea eax, [ebp - 0x10]
push 0
push eax
push 0xffffffffffffffff
push str.DELETE_FROM_CDK_WHERE_CDK____
push dword [0x4d1308]
mov dword [ebp - 0x10], 0
call esi
add esp, 0x14
test eax, eax
jne 0x4607d4
mov ecx, ebx
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4607b0
push 0xffffffffffffffff
sub ecx, edx
push ecx
push ebx
push 1
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_text]
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x18
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0xffffffffffffffff
push str.UPDATE_User_SET_RegCDK____WHERE_Name____
push dword [0x4d1308]
call esi
add esp, 0x18
test eax, eax
jne 0x460847
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x460805
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_bind_text]
sub ecx, edx
push 0xffffffffffffffff
push ecx
push ebx
push 1
push dword [ebp - 0x10]
call esi
mov ecx, edi
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x460827
push 0xffffffffffffffff
sub ecx, edx
push ecx
push edi
push 2
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x18
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov eax, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov edx, eax
call fcn.004604f0
push edi
call fcn.00462046
push dword [ebp - 0x18]
call fcn.00462046
push ebx
call fcn.00462046
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
push 0x4d2dd8
call fcn.00461a15
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 5
call fcn.0046194a
dec eax
push 6
mov dword [0x4d2e04], eax
call fcn.0046194a
int3