Function at 0x495cd0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520a92
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x7c6ee4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edi, [ecx + 0x40]
mov ecx, edi
call dword [0x530608]
test eax, eax
jle 0x495dab
mov ecx, edi
xor esi, esi
call dword [0x530608]
test eax, eax
jle 0x495d43
nop dword [eax]
push esi
mov ecx, edi
call dword [0x530604]
mov ecx, dword [eax]
test ecx, ecx
je 0x495d36
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov ecx, edi
inc esi
call dword [0x530608]
cmp esi, eax
jl 0x495d20
mov esi, dword [0x5304a8]
mov ecx, dword [edi]
mov dword [edi], esi
mov eax, dword [ecx]
or ebx, 0xffffffff
mov edx, dword [0x530610]
mov dword [ebp - 4], 0
test eax, eax
je 0x495d74
cmp eax, ebx
je 0x495d80
mov eax, ebx
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x495d80
push ecx
call edx
mov edx, dword [0x530610]
add esp, 4
mov eax, dword [esi]
mov dword [ebp - 4], 1
test eax, eax
je 0x495d9e
cmp eax, 0xffffffff
je 0x495da4
lock xadd dword [esi], ebx
dec ebx
setne al
test al, al
jne 0x495da4
push esi
call edx
add esp, 4
mov dword [ebp - 4], 0xffffffff
push ecx
mov ecx, esp
call dword [0x530a18]
lea ecx, [ebp - 0x1c]
call dword [0x5307a8]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 2
call dword [0x5309b8]
lea ecx, [ebp - 0x1c]
call dword [0x5307a0]
lea ecx, [ebp - 0x18]
call dword [0x5307a8]
lea ecx, [ebp - 0x14]
call dword [0x5307a8]
cmp dword [0x7c824c], 1
mov esi, dword [0x53076c]
mov byte [ebp - 4], 6
jne 0x495e41
push 0x1b
push str.file.filename_like____1__
call esi
mov dword [ebp - 0x1c], eax
add esp, 4
mov byte [ebp - 0x20], 0x20
mov ecx, esp
mov byte [ebp - 4], 7
push dword [ebp - 0x20]
call dword [0x5307b0]
mov ebx, dword [0x530794]
lea eax, [ebp - 0x24]
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push eax
call ebx
push eax
lea ecx, [ebp - 0x14]
call dword [0x53063c]
lea ecx, [ebp - 0x24]
jmp 0x495e84
push 0x1e
push str.file.filename_en_like____1__
call esi
mov dword [ebp - 0x1c], eax
add esp, 4
mov byte [ebp - 0x24], 0x20
mov ecx, esp
mov byte [ebp - 4], 8
push dword [ebp - 0x24]
call dword [0x5307b0]
mov ebx, dword [0x530794]
lea eax, [ebp - 0x20]
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push eax
call ebx
push eax
lea ecx, [ebp - 0x14]
call dword [0x53063c]
lea ecx, [ebp - 0x20]
call dword [0x5307a0]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call dword [0x5307a0]
push 0x73
push str.SELECT_file.fid__file.filename__file.filename_en_FROM_file_WHERE_file.type__1_and__1_ORDER_BY_file.filename_en_ASC
call esi
mov dword [ebp + 8], eax
add esp, 4
mov byte [ebp - 0x24], 0x20
mov ecx, esp
mov byte [ebp - 4], 9
push dword [ebp - 0x24]
call dword [0x5307b0]
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 8]
call ebx
push eax
lea ecx, [ebp - 0x18]
call dword [0x53063c]
lea ecx, [ebp - 0x20]
call dword [0x5307a0]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call dword [0x5307a0]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call dword [0x5309c8]
lea ecx, [ebp - 0x10]
test al, al
je 0x496009
mov ebx, dword [0x5309d4]
call ebx
test al, al
je 0x49606c
mov esi, dword [0x5309cc]
push 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x10]
call esi
push 0
mov ecx, eax
mov byte [ebp - 4], 0xa
call dword [0x530734]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 6
call dword [0x530740]
push 1
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x10]
call esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
push ecx
mov ecx, eax
call dword [0x53072c]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xd
call dword [0x530740]
push 2
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x10]
call esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xe
push ecx
mov ecx, eax
call dword [0x53072c]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x10
call dword [0x530740]
push 0x28
call fcn.0050ae88
add esp, 4
mov dword [ebp - 0x28], eax
push 0
mov ecx, eax
mov byte [ebp - 4], 0x11
call fcn.004a7830
mov esi, eax
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], esi
push eax
mov ecx, esi
call fcn.004a79d0
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.004a79b0
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.004a79c0
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.00427a00
lea ecx, [ebp + 8]
call dword [0x5307a0]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call dword [0x5307a0]
lea ecx, [ebp - 0x10]
call ebx
mov esi, dword [0x5309cc]
test al, al
jne 0x495f16
jmp 0x49606c
lea eax, [ebp - 0x5c]
push eax
call dword [0x5309c4]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x12
push ecx
mov ecx, eax
call dword [0x530a1c]
mov esi, eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 0x13
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x4c]
call dword [0x5307bc]
mov ecx, eax
call dword [0x5307b8]
push esi
mov ecx, eax
mov byte [ebp - 4], 0x14
call dword [0x530700]
lea ecx, [ebp + 8]
call dword [0x530710]
lea ecx, [ebp - 0x24]
call dword [0x5307a0]
lea ecx, [ebp - 0x5c]
call dword [0x5309b4]
lea ecx, [ebp - 0x14]
call dword [0x5307a0]
lea ecx, [ebp - 0x18]
call dword [0x5307a0]
lea ecx, [ebp - 0x10]
call dword [0x5309c0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4