Function at 0x51e840
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0xa5]
test eax, eax
je 0x51e8b9
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xa0], 1
jne 0x51e8b9
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0xa4]
mov dword [ebp - 8], eax
mov ecx, 1
test ecx, ecx
je 0x51e894
cmp dword [ebp - 8], 1
jne 0x51e894
mov dword [ebp - 0x34], 0x5a9510
jmp 0x51e89b
mov dword [ebp - 0x34], 0x5a9500
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0056efd0
add esp, 8
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
jmp 0x51e95f
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0051f040
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x51e8df
jmp 0x51ee3c
mov eax, 1
test eax, eax
je 0x51e913
cmp dword [ebp + 0x14], 0
je 0x51e913
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 4], 0
jbe 0x51e913
cmp dword [ebp - 8], 1
je 0x51e913
push 0x5a94d4
mov edx, dword [ebp + 8]
push edx
call fcn.0056b200
add esp, 8
jmp 0x51ee3c
mov eax, 1
test eax, eax
je 0x51e929
cmp dword [ebp + 0x14], 0
je 0x51e929
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0051f220
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xc8]
cmp ecx, 2
jl 0x51e95f
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00524680
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [ebp + 8]
mov dword [edx + 0xb4], eax
mov dword [edx + 0xb8], ecx
cmp dword [ebp - 0x14], 0
jne 0x51e981
jmp 0x51ee3c
cmp dword [ebp + 0x18], 0
je 0x51e990
mov dword [ebp - 0x38], 0x5a94cc
jmp 0x51e997
mov dword [ebp - 0x38], 0x5a94c4
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0051eed0
add esp, 0x10
test eax, eax
je 0x51e9b8
jmp 0x51ee2c
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0xa4]
cmp edx, 1
jne 0x51e9ce
mov dword [ebp + 0x14], 1
mov eax, dword [ebp - 8]
shl eax, 4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + eax]
mov dword [ebp - 0x40], eax
mov ecx, 1
test ecx, ecx
je 0x51e9f8
cmp dword [ebp + 0x14], 1
jne 0x51e9f8
mov dword [ebp - 0x3c], 0x5a94b0
jmp 0x51e9ff
mov dword [ebp - 0x3c], 0x5a94a0
mov edx, dword [ebp - 0x40]
push edx
push 0
mov eax, dword [ebp - 0x3c]
push eax
push 0x12
mov ecx, dword [ebp + 8]
push ecx
call fcn.00520280
add esp, 0x14
test eax, eax
je 0x51ea20
jmp 0x51ee2c
cmp dword [ebp + 0x1c], 0
jne 0x51ea54
mov edx, dword [ebp - 0x40]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
movzx eax, byte [edx + ecx*2 + 0x5931d8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00520280
add esp, 0x14
test eax, eax
je 0x51ea54
jmp 0x51ee2c
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0xc8]
test eax, eax
jne 0x51eb0e
mov ecx, dword [ebp - 8]
shl ecx, 4
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + ecx]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00507b80
add esp, 4
test eax, eax
je 0x51ea8d
jmp 0x51ee2c
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0051fb70
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x51eadc
cmp dword [ebp + 0x20], 0
jne 0x51eac7
mov eax, dword [ebp - 0x1c]
push eax
push 0x5a9488
mov ecx, dword [ebp + 8]
push ecx
call fcn.0056b200
add esp, 0xc
jmp 0x51ead7
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005191a0
add esp, 8
jmp 0x51ee2c
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0051f8e0
add esp, 0xc
test eax, eax
je 0x51eb0e
mov ecx, dword [ebp - 0x14]
push ecx
push 0x5a9464
mov edx, dword [ebp + 8]
push edx
call fcn.0056b200
add esp, 0xc
jmp 0x51ee2c
push 0
push 0x50
mov eax, dword [ebp - 0xc]
push eax
call fcn.0056f390
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x51eb45
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 7
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x24]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x24], eax
jmp 0x51ee2c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
or ecx, 0xffffffff
mov edx, dword [ebp - 0x18]
mov word [edx + 0x28], cx
mov eax, dword [ebp - 8]
shl eax, 4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ebp - 0x18]
mov edx, dword [edx + eax + 0xc]
mov dword [ecx + 0x48], edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x20], 1
mov ecx, 0xc8
mov edx, dword [ebp - 0x18]
mov word [edx + 0x2c], cx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0xe4], ecx
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x12]
test eax, eax
jne 0x51ec04
mov dword [ebp - 0x24], 0x5a9454
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov al, byte [edx]
mov byte [ebp - 1], al
mov ecx, dword [ebp - 0x24]
cmp al, byte [ecx]
jne 0x51ebe4
cmp byte [ebp - 1], 0
je 0x51ebdb
mov edx, dword [ebp - 0x20]
mov al, byte [edx + 1]
mov byte [ebp - 2], al
mov ecx, dword [ebp - 0x24]
cmp al, byte [ecx + 1]
jne 0x51ebe4
add dword [ebp - 0x20], 2
add dword [ebp - 0x24], 2
cmp byte [ebp - 2], 0
jne 0x51eba7
mov dword [ebp - 0x48], 0
jmp 0x51ebec
sbb edx, edx
or edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x51ec04
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x48]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x48], eax
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0xa5]
test edx, edx
jne 0x51ee2a
mov eax, dword [ebp + 8]
push eax
call fcn.005045d0
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x51ee2a
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.005190c0
add esp, 0xc
cmp dword [ebp + 0x1c], 0
je 0x51ec58
push 0xa0
mov eax, dword [ebp - 0x10]
push eax
call fcn.005461d0
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
mov dword [edx + 0x58], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0x2c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x5c], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x4c]
mov dword [edx + 0x2c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x28], ecx
push 2
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 8]
push eax
push 0x5e
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.005461f0
add esp, 0x14
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00544e90
add esp, 8
mov ecx, dword [ebp - 0x28]
push ecx
push 0x12
mov edx, dword [ebp - 0x10]
push edx
call fcn.005461b0
add esp, 0xc
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x20]
and ecx, 2
mov edx, dword [eax + 0x24]
and edx, 0
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x6c]
or eax, dword [ebp - 0x68]
je 0x51ed1e
mov dword [ebp - 0x50], 1
jmp 0x51ed25
mov dword [ebp - 0x50], 4
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
push edx
push 2
mov eax, dword [ebp - 8]
push eax
push 0x5f
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.005461f0
add esp, 0x14
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0x4e]
push eax
push 5
mov ecx, dword [ebp - 8]
push ecx
push 0x5f
mov edx, dword [ebp - 0x10]
push edx
call fcn.005461f0
add esp, 0x14
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00545860
add esp, 8
cmp dword [ebp + 0x18], 0
jne 0x51ed7b
cmp dword [ebp + 0x1c], 0
je 0x51ed91
mov edx, dword [ebp - 0x54]
push edx
push 0
push 0x46
mov eax, dword [ebp - 0x10]
push eax
call fcn.00546190
add esp, 0x10
jmp 0x51edb5
push 1
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0x8b
mov eax, dword [ebp - 0x10]
push eax
call fcn.005461f0
add esp, 0x14
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x80], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0051f1c0
add esp, 8
mov ecx, dword [ebp - 0x58]
push ecx
push 0
push 0x79
mov edx, dword [ebp - 0x10]
push edx
call fcn.00546190
add esp, 0x10
push 0xffffffffffffffff
push 0x5961dc
push 0
mov eax, dword [ebp - 0x28]
push eax
push 6
push 0x4b
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00546000
add esp, 0x1c
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x28]
push eax
push 0
push 0x7a
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.005461f0
add esp, 0x14
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.00545880
add esp, 8
push 0x75
mov eax, dword [ebp - 0x10]
push eax
call fcn.005461d0
add esp, 8
jmp 0x51ee3c
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0056f630
add esp, 8
mov esp, ebp
pop ebp
ret