Function at 0x407cb0
Capabilities:
Access peb ldr_data
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x44e870
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
call fcn.0042e854
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 8]
push str.SELECT__FROM__client__WHERE__client_id____d
push ecx
mov dword [esp + 0x34], 0
call fcn.004018c0
mov esi, dword [esp + 0x10]
add esp, 0xc
push esi
mov ecx, 0x46ba28
call fcn.00404300
push eax
lea ecx, [esp + 0xc]
call fcn.00404380
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.00404260
test al, al
je 0x407d6a
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.004043a0
lea eax, [esi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407d56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
push 0x30
call fcn.0042e824
add esp, 4
test eax, eax
je 0x407d83
mov ecx, eax
call fcn.00407020
mov esi, eax
jmp 0x407d85
xor esi, esi
push ebp
push edi
push 0
push str.client_id
lea ecx, [esp + 0x18]
call fcn.004043c0
push 0x451ab9
push str.name
lea ecx, [esp + 0x18]
mov dword [esi], eax
call fcn.004041f0
test eax, eax
lea edi, [esi + 4]
jne 0x407db7
xor edx, edx
jmp 0x407dc9
mov edx, eax
lea ebp, [edx + 1]
lea esp, [esp]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x407dc0
sub edx, ebp
push edx
push eax
mov ecx, edi
call fcn.00401730
push 0x451ab9
push str.addr
lea ecx, [esp + 0x18]
call fcn.004041f0
test eax, eax
lea edi, [esi + 8]
jne 0x407df0
xor edx, edx
jmp 0x407dfe
mov edx, eax
lea ebp, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x407df5
sub edx, ebp
push edx
push eax
mov ecx, edi
call fcn.00401730
push 0x451ab9
push str.code
lea ecx, [esp + 0x18]
call fcn.004041f0
test eax, eax
lea edi, [esi + 0xc]
jne 0x407e25
xor edx, edx
jmp 0x407e39
mov edx, eax
lea ebp, [edx + 1]
lea ebx, [ebx]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x407e30
sub edx, ebp
push edx
push eax
mov ecx, edi
call fcn.00401730
push 0x451ab9
push str.memo
lea ecx, [esp + 0x18]
call fcn.004041f0
test eax, eax
lea edi, [esi + 0x10]
jne 0x407e60
xor edx, edx
jmp 0x407e6e
mov edx, eax
lea ebp, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x407e65
sub edx, ebp
push edx
push eax
mov ecx, edi
call fcn.00401730
push 0
push str.status
lea ecx, [esp + 0x18]
call fcn.004043c0
push 0x451ab9
push str.create_time
lea ecx, [esp + 0x18]
mov dword [esi + 0x14], eax
call fcn.004041f0
test eax, eax
lea edi, [esi + 0x18]
jne 0x407ea8
xor edx, edx
jmp 0x407eb9
mov edx, eax
lea ebp, [edx + 1]
lea ecx, [ecx]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x407eb0
sub edx, ebp
push edx
push eax
mov ecx, edi
call fcn.00401730
push 0x451ab9
push str.update_time
lea ecx, [esp + 0x18]
call fcn.004041f0
test eax, eax
lea edi, [esi + 0x1c]
jne 0x407ee0
xor edx, edx
jmp 0x407eee
mov edx, eax
lea ebp, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x407ee5
sub edx, ebp
push edx
push eax
mov ecx, edi
call fcn.00401730
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.004043a0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop ebp
jg 0x407f2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4