Function at 0x696b40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x12c
mov eax, dword [0xbd33e0]
xor eax, ebp
test edx, edx
mov dword [ebp - 0x10], eax
je 0x696fd3
mov esi, ecx
push str.SELECT_id__issue_time__issue_hostname__issue_username__issue_ip__deny_access__machine_fingerprint_FROM_fingerprint_WHERE_identity_id___
push edx
call fcn.006bdcb2
add esp, 8
test eax, eax
je 0x696fd3
mov edi, eax
push 0xffffffffffffffff
push dword [ebp + 8]
push 0
push eax
call fcn.006be15f
add esp, 0x10
push edi
call fcn.006be9d3
add esp, 4
cmp eax, 0x3e8
jne 0x696fbe
mov dword [ebp - 0x114], edi
xor eax, eax
push eax
push edi
call fcn.006bff35
add esp, 8
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], edx
push 1
push edi
call fcn.006bff35
add esp, 8
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], edx
push 2
push edi
call fcn.006bfeec
add esp, 8
mov dword [ebp - 0x128], eax
push 3
push edi
call fcn.006bfeec
add esp, 8
mov dword [ebp - 0x130], eax
push 4
push edi
call fcn.006bfeec
add esp, 8
mov dword [ebp - 0x12c], eax
push 5
push edi
call fcn.006bff35
add esp, 8
mov ebx, eax
mov dword [ebp - 0x118], edx
push 6
push edi
call fcn.006bfeec
add esp, 8
mov edi, eax
push 0xa
push dword [esi]
call fcn.004e86fa
add esp, 8
cmp dword [ebp + 0xc], 0
mov ecx, esi
mov dword [ebp - 0x124], edi
je 0x696df4
mov edx, 0xba5ed9
mov eax, 4
push eax
call fcn.0069693b
add esp, 4
mov eax, 0xa
push eax
mov edi, 0xa
push dword [esi]
call fcn.004e86fa
add esp, 8
mov ecx, esi
mov edx, 0xba5eec
mov eax, 5
push eax
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
call fcn.00696aa9
add esp, 0xc
push edi
mov edi, 0xa
push dword [esi]
call fcn.004e86fa
add esp, 8
or ebx, dword [ebp - 0x118]
mov eax, 0xba5efc
mov ecx, 0xba5efe
mov edx, 0xba5f00
mov ebx, 5
cmove eax, ecx
mov ecx, esi
push ebx
push eax
call fcn.006969a3
add esp, 8
push edi
push dword [esi]
call fcn.004e86fa
add esp, 8
mov eax, pe_nt_image_headers32
push eax
lea ebx, [ebp - 0x110]
push ebx
push dword [ebp - 0x128]
call fcn.004ec05d
add esp, 0xc
mov ecx, esi
mov edx, 0xba5f09
mov edi, 5
push edi
push ebx
call fcn.006969a3
add esp, 8
mov ebx, 0xa
push ebx
push dword [esi]
call fcn.004e86fa
add esp, 8
mov ecx, esi
mov edx, 0xba5f17
push edi
push dword [ebp - 0x12c]
call fcn.006969a3
add esp, 8
push ebx
mov edi, 0xa
push dword [esi]
call fcn.004e86fa
add esp, 8
mov ebx, pe_nt_image_headers32
push ebx
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x130]
call fcn.004ec05d
add esp, 0xc
mov ecx, esi
mov edx, 0xba5f1a
mov eax, 5
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.006969a3
add esp, 8
push edi
push dword [esi]
call fcn.004e86fa
add esp, 8
push dword [ebp - 0x134]
push dword [ebp - 0x138]
push 0x4c
push ebx
lea eax, [ebp - 0x90]
push eax
call fcn.0069d10f
add esp, 0x14
mov ecx, esi
mov edx, 0xba5f24
mov ebx, 5
push ebx
mov ebx, 5
push eax
call fcn.006969a3
add esp, 8
push edi
push dword [esi]
call fcn.004e86fa
add esp, 8
mov ecx, esi
mov edx, 0xba5f36
push ebx
push dword [ebp - 0x124]
call fcn.006969a3
add esp, 8
push edi
mov edi, dword [ebp - 0x114]
push dword [esi]
call fcn.004e86fa
add esp, 8
mov ecx, esi
mov edx, 0xba5f42
mov eax, 4
jmp 0x696fa1
mov edx, 0xba5f55
mov eax, 3
push eax
call fcn.0069693b
add esp, 4
mov eax, 0xa
push eax
mov edi, 0xa
push dword [esi]
call fcn.004e86fa
add esp, 8
mov ecx, esi
mov edx, str.registration_id
mov eax, 4
push eax
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
call fcn.00696aa9
add esp, 0xc
push edi
mov edi, 0xa
push dword [esi]
call fcn.004e86fa
add esp, 8
or ebx, dword [ebp - 0x118]
mov eax, 0xba5f78
mov ecx, 0xba5f7a
mov edx, str.disabled
mov ebx, 4
cmove eax, ecx
mov ecx, esi
push ebx
push eax
call fcn.006969a3
add esp, 8
push edi
push dword [esi]
call fcn.004e86fa
add esp, 8
mov eax, pe_nt_image_headers32
push eax
lea ebx, [ebp - 0x110]
push ebx
push dword [ebp - 0x128]
call fcn.004ec05d
add esp, 0xc
mov ecx, esi
mov edx, str.computer_name
mov edi, 4
push edi
push ebx
call fcn.006969a3
add esp, 8
mov ebx, 0xa
push ebx
push dword [esi]
call fcn.004e86fa
add esp, 8
mov ecx, esi
mov edx, 0xba5f93
push edi
push dword [ebp - 0x12c]
call fcn.006969a3
add esp, 8
push ebx
mov edi, 0xa
push dword [esi]
call fcn.004e86fa
add esp, 8
mov ebx, pe_nt_image_headers32
push ebx
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x130]
call fcn.004ec05d
add esp, 0xc
mov ecx, esi
mov edx, str.user_name
mov eax, 4
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.006969a3
add esp, 8
push edi
push dword [esi]
call fcn.004e86fa
add esp, 8
push dword [ebp - 0x134]
push dword [ebp - 0x138]
push 0x4c
push ebx
lea eax, [ebp - 0x90]
push eax
call fcn.0069d10f
add esp, 0x14
mov ecx, esi
mov edx, str.registration_date
mov ebx, 4
push ebx
mov ebx, 4
push eax
call fcn.006969a3
add esp, 8
push edi
push dword [esi]
call fcn.004e86fa
add esp, 8
mov ecx, esi
mov edx, 0xba5fb2
push ebx
push dword [ebp - 0x124]
call fcn.006969a3
add esp, 8
push edi
mov edi, dword [ebp - 0x114]
push dword [esi]
call fcn.004e86fa
add esp, 8
mov ecx, esi
mov edx, str.registered_machine
mov eax, 3
push eax
call fcn.00696fe8
add esp, 4
push edi
call fcn.006be9d3
add esp, 4
cmp eax, 0x3e8
je 0x696ba2
push 0xa
push dword [esi]
call fcn.004e86fa
add esp, 8
push edi
call fcn.006bdcf4
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00989fe9
add esp, 0x12c
pop esi
pop edi
pop ebx
pop ebp
ret