Function at 0x4e7054
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x4e705c
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4e7393
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x3a0]
mov eax, dword [eax + 0x278]
call fcn.004d81e0
dec eax
test eax, eax
jl 0x4e732f
inc eax
mov dword [ebp - 4], eax
xor esi, esi
mov eax, dword [ebx + 0x3a0]
mov eax, dword [eax + 0x278]
mov edx, esi
call fcn.004d8218
call fcn.004d7b24
cmp al, 1
jne 0x4e723e
push 0x4e73ac
lea edx, [ebp - 8]
mov eax, dword [0x515640]
mov eax, dword [eax]
mov eax, dword [eax + 0x3f4]
call fcn.0040a2bc
push dword [ebp - 8]
push 0x4e73ec
lea edx, [ebp - 0x10]
mov eax, dword [ebx + 0x378]
call fcn.0045e880
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0040a2bc
push dword [ebp - 0xc]
push 0x4e7408
mov eax, dword [ebx + 0x3a0]
mov eax, dword [eax + 0x278]
mov edx, esi
call fcn.004d8218
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x14]
mov edx, 1
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x14]
mov eax, 0x51afa4
mov edx, 6
call fcn.0040562c
mov eax, dword [ebx + 0x3a4]
push eax
mov eax, dword [0x515640]
mov eax, dword [eax]
mov cl, 1
mov edx, dword [0x51afa4]
call fcn.0050b7dc
dec eax
jge 0x4e7325
push 0x4e7420
lea edx, [ebp - 0x18]
mov eax, dword [0x515640]
mov eax, dword [eax]
mov eax, dword [eax + 0x3f4]
call fcn.0040a2bc
push dword [ebp - 0x18]
push 0x4e746c
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x378]
call fcn.0045e880
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0040a2bc
push dword [ebp - 0x1c]
push 0x4e746c
mov eax, dword [ebx + 0x3a0]
mov eax, dword [eax + 0x278]
mov edx, esi
call fcn.004d8218
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x24]
mov edx, 1
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x24]
push 0x4e7478
mov eax, 0x51afa4
mov edx, 7
call fcn.0040562c
mov eax, dword [ebx + 0x3a4]
push eax
mov eax, dword [0x515640]
mov eax, dword [eax]
xor ecx, ecx
mov edx, dword [0x51afa4]
call fcn.0050b7dc
mov eax, dword [ebx + 0x3a0]
mov eax, dword [eax + 0x278]
mov edx, esi
call fcn.004d8218
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x28]
mov edx, 1
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x28]
mov eax, 0x51afa4
mov edx, 0x4e7484
call fcn.004055b0
mov eax, dword [ebx + 0x3a4]
push eax
mov eax, dword [0x515640]
mov eax, dword [eax]
xor ecx, ecx
mov edx, dword [0x51afa4]
call fcn.0050b7dc
jmp 0x4e7325
push 0x4e74bc
mov eax, dword [ebx + 0x3a0]
mov eax, dword [eax + 0x278]
mov edx, esi
call fcn.004d8218
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x2c]
mov edx, 1
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x2c]
push 0x4e73ec
lea edx, [ebp - 0x34]
mov eax, dword [ebx + 0x378]
call fcn.0045e880
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.0040a2bc
push dword [ebp - 0x30]
push 0x4e74f0
lea edx, [ebp - 0x38]
mov eax, dword [0x515640]
mov eax, dword [eax]
mov eax, dword [eax + 0x3f4]
call fcn.0040a2bc
push dword [ebp - 0x38]
mov eax, 0x51afa4
mov edx, 6
call fcn.0040562c
mov eax, dword [ebx + 0x3a4]
push eax
mov eax, dword [0x515640]
mov eax, dword [eax]
xor ecx, ecx
mov edx, dword [0x51afa4]
call fcn.0050b7dc
test eax, eax
jle 0x4e7325
mov eax, dword [ebx + 0x3a0]
mov eax, dword [eax + 0x278]
mov edx, esi
call fcn.004d8218
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x3c]
mov edx, 1
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x3c]
mov eax, 0x51afa4
mov edx, 0x4e7484
call fcn.004055b0
mov eax, dword [ebx + 0x3a4]
push eax
mov eax, dword [0x515640]
mov eax, dword [eax]
xor ecx, ecx
mov edx, dword [0x51afa4]
call fcn.0050b7dc
inc esi
dec dword [ebp - 4]
jne 0x4e7097
mov eax, 0x4e7508
call fcn.0044f118
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e739a
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004052bc
lea eax, [ebp - 0x34]
call fcn.00405298
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.004052bc
lea eax, [ebp - 0x20]
call fcn.00405298
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004052bc
lea eax, [ebp - 0x10]
call fcn.00405298
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004052bc
ret