Function at 0x58dc7e
Capabilities:
Reference sql statements

Disassembly:
push 0x17c
mov eax, 0x61177e
call fcn.005cb937
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0xc4], ecx
call fcn.0058cdda
and dword [ebp - 4], 0
lea eax, [ebp - 0xfc]
push eax
call fcn.0044c572
sub esp, 0x1c
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0xcc], esp
mov ebx, 0x641040
push ebx
call fcn.0040518c
sub esp, 0x1c
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0xc8], esp
push str.TEXT_PRIMARY_KEY
call fcn.0040518c
sub esp, 0x1c
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0xc0], esp
push str._name
call fcn.0040518c
lea esi, [ebp - 0x188]
mov byte [ebp - 4], 1
call fcn.00578bd9
push eax
lea esi, [ebp - 0xfc]
mov byte [ebp - 4], 4
call fcn.0057f434
lea esi, [ebp - 0x188]
mov byte [ebp - 4], 1
call fcn.0057ef9c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xc0], esp
push ebx
call fcn.0040518c
sub esp, 0x1c
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0xc8], esp
push str.TEXT
call fcn.0040518c
sub esp, 0x1c
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0xcc], esp
push str._value
call fcn.0040518c
lea esi, [ebp - 0x188]
mov byte [ebp - 4], 1
call fcn.00578bd9
push eax
lea esi, [ebp - 0xfc]
mov byte [ebp - 4], 7
call fcn.0057f434
lea esi, [ebp - 0x188]
mov byte [ebp - 4], 1
call fcn.0057ef9c
mov esi, dword [ebp - 0xc4]
add esi, 0x70
push esi
lea eax, [ebp - 0xbc]
push eax
call fcn.00581ad8
mov byte [ebp - 4], 8
sub esp, 0x1c
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0xc0], esp
push eax
call fcn.004051ae
lea ecx, [ebp - 0xbc]
call fcn.00582000
test eax, eax
jne 0x58de86
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xc0], esp
push ebx
call fcn.0040518c
sub esp, 0x1c
mov byte [ebp - 4], 9
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0xc8], esp
push eax
lea ebx, [ebp - 0xfc]
call fcn.004051ae
push esi
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.0057831f
add esp, 0x3c
cmp dword [ebp - 0x18], 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x2c]
jae 0x58de27
lea eax, [ebp - 0x2c]
push 2
push eax
push str.INSERT_INTO__s___name___value__VALUES__rev___d_
mov ecx, 0x400
lea edx, [ebp - 0x4c]
call fcn.0054aa9f
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
lea ebx, [ebp - 0xbc]
mov byte [ebp - 4], 0xa
call fcn.00581b3f
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.004055c2
mov edi, ebx
call fcn.00581b18
lea edi, [ebp - 0xfc]
call fcn.0057f3fa
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004055c2
xor eax, eax
call fcn.005cb9ba
ret 8
push 0
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x50], 0xf
call fcn.004055a6
lea eax, [ebp - 0x68]
push eax
sub esp, 0x1c
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0xc0], esp
push eax
call fcn.004051ae
push esi
lea ecx, [ebp - 0xfc]
call fcn.00578579
add esp, 0x24
cmp dword [ebp + 0xc], 0
mov dword [edi], eax
je 0x58e081
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x58deda
lea eax, [ebp - 0x2c]
push eax
push str.SELECT__FROM__s_WHERE__namerev
mov ecx, 0x400
lea edx, [ebp - 0x4c]
call fcn.0054aa9f
sub esp, 0x14
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp - 0xc0], esp
push ebx
call fcn.0040518c
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00581b63
test eax, eax
jne 0x58e075
lea eax, [ebp - 0xe4]
push eax
call fcn.0044c572
lea esi, [ebp - 0x9c]
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 0xd
call fcn.00578059
mov eax, dword [ebp - 0xd4]
sub eax, dword [ebp - 0xd8]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x58e06a
xor ebx, ebx
push ebx
lea esi, [ebp - 0xe4]
call fcn.0057814f
mov ecx, eax
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 2
jb 0x58e06a
push 1
push ebx
call fcn.0057814f
mov esi, eax
call fcn.0040ba07
cmp dword [eax + 0x18], 0x10
jb 0x58df93
mov eax, dword [eax + 4]
jmp 0x58df96
add eax, 4
push eax
call fcn.005c59d8
pop ecx
cmp eax, 2
je 0x58e06a
mov esi, dword [ebp - 0xc4]
mov eax, esi
call fcn.0058d6f1
cmp eax, ebx
jne 0x58e002
lea esi, [ebp - 0xe4]
call fcn.0057802c
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.004055c2
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.004055c2
lea edi, [ebp - 0xbc]
call fcn.00581b18
lea edi, [ebp - 0xfc]
call fcn.0057f3fa
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004055c2
mov eax, ebx
jmp 0x58de7e
lea ecx, [ebp - 0x134]
call fcn.0058cf3d
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x18], 0x10
jb 0x58e01c
mov eax, dword [eax + 4]
jmp 0x58e01f
add eax, 4
push eax
lea ecx, [ebp - 0x118]
call fcn.0040518c
lea eax, [ebp - 0x118]
push eax
lea eax, [esi + 0x70]
push eax
mov byte [ebp - 4], 0xf
call fcn.005768b7
push ebx
push 1
lea ecx, [ebp - 0x118]
mov dword [edi], eax
call fcn.004055c2
push ebx
push 1
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0xd
call fcn.004055c2
push ebx
push edi
mov ecx, esi
call fcn.0058dc7e
lea esi, [ebp - 0xe4]
call fcn.0057802c
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.004055c2
xor ebx, ebx
inc ebx
jmp 0x58dfcd