Function at 0x4d16e4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404b1c
xor eax, eax
push ebp
push 0x4d1b37
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov dl, 1
mov eax, dword [0x41af60]
call fcn.004037ec
mov dword [ebp - 0x1c], eax
mov eax, esi
call fcn.004daa18
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4d1ae5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4d177b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x58]
mov edx, 0x4d1b50
mov ecx, dword [eax]
call dword [ecx + 0x2c]
jmp 0x4d17d7
cmp byte [ebp - 5], 1
jne 0x4d17ad
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x58]
mov edx, 0x4d1ce0
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x18]
call fcn.004b1c44
mov edx, 0x4d1e98
call fcn.004b0b3c
mov edx, dword [ebp - 4]
call fcn.004b07ec
jmp 0x4d17d7
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x58]
mov edx, 0x4d1eac
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x18]
call fcn.004b1c44
mov edx, 0x4d2064
call fcn.004b0b3c
mov edx, dword [ebp - 4]
call fcn.004b07ec
mov eax, dword [ebp - 0x18]
call fcn.004b14fc
jmp 0x4d1a84
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x44]
test bl, bl
je 0x4d186e
cmp byte [esi + 0x41], 0
je 0x4d1833
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 0x38], 0x5e
mov byte [ebp - 0x34], 2
mov byte [ebp - 0x30], 0x3b
mov byte [ebp - 0x2c], 2
mov eax, 0x4d2078
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x38]
mov ecx, 2
mov eax, 0x4d2084
call fcn.0040a3bc
mov edx, dword [ebp - 0x20]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x4d2078
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x4d2078
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
lea edx, [ebp - 0x4c]
mov ecx, 1
mov eax, 0x4d20a0
call fcn.0040a3bc
mov edx, dword [ebp - 0x3c]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor ebx, ebx
mov edx, 0x4d20dc
mov eax, dword [ebp - 0x18]
call fcn.004b1764
lea edx, [ebp - 0xc]
call fcn.004b083c
mov edx, 0x4d20f8
mov eax, dword [ebp - 0x18]
call fcn.004b1764
lea edx, [ebp - 0x10]
call fcn.004b083c
mov edx, 0x4d2114
mov eax, dword [ebp - 0x18]
call fcn.004b1764
call fcn.004afc88
test al, al
je 0x4d18bd
lea eax, [ebp - 0x14]
mov edx, 0x4d2134
call fcn.00404704
jmp 0x4d18ee
mov edx, 0x4d2114
mov eax, dword [ebp - 0x18]
call fcn.004b1764
call fcn.004af698
dec eax
jne 0x4d18e1
lea eax, [ebp - 0x14]
mov edx, 0x4d2134
call fcn.00404704
jmp 0x4d18ee
lea eax, [ebp - 0x14]
mov edx, 0x4d2148
call fcn.00404704
mov edx, 0x4d2158
mov eax, dword [ebp - 0x18]
call fcn.004b1764
call fcn.004af698
dec eax
je 0x4d1910
mov edx, 0x4d216c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi + 0x30]
call fcn.004b562c
mov edx, eax
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x30]
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0xb
lea eax, [ebp - 0x88]
push eax
mov eax, dword [esi + 0x30]
call fcn.004b562c
mov edx, eax
mov ecx, dword [ebp - 0x10]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x30]
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0xb
mov eax, 0x4d2078
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0xb
mov edx, 0x4d2178
mov eax, dword [ebp - 0x18]
call fcn.004b1764
call fcn.004af698
mov eax, dword [eax*4 + 0x4e8a20]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0xb
mov edx, 0x4d2194
mov eax, dword [ebp - 0x18]
call fcn.004b1764
call fcn.004af698
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0
lea edx, [ebp - 0x80]
mov ecx, 5
mov eax, 0x4d21b4
call fcn.0040a3bc
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x4d21ec
mov eax, dword [ebp - 0x18]
call fcn.004b1764
call fcn.004afc88
test al, al
jne 0x4d1a2d
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea eax, [ebp - 0x8c]
push eax
mov edx, 0x4d21ec
mov eax, dword [ebp - 0x18]
call fcn.004b1764
lea edx, [ebp - 0x90]
call fcn.004b083c
mov edx, dword [ebp - 0x90]
pop eax
call fcn.00404934
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
cmp byte [esi + 0x41], 0
je 0x4d1a42
mov edx, 0x4d2208
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x4d1a4f
mov edx, 0x4d2218
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x4d2158
mov eax, dword [ebp - 0x18]
call fcn.004b1764
call fcn.004af698
dec eax
je 0x4d1a71
mov edx, 0x4d2228
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi + 0x38]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x18]
call fcn.004b18c4
mov eax, dword [ebp - 0x18]
call fcn.004b1750
test al, al
je 0x4d17e4
test bl, bl
jne 0x4d1ac7
cmp byte [esi + 0x41], 0
je 0x4d1aba
mov eax, dword [esi + 0x38]
mov edx, 0x4d2234
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi + 0x38]
mov edx, 0x4d224c
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x4d1ac7
mov eax, dword [esi + 0x38]
mov edx, 0x4d2260
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1aec
mov eax, dword [ebp - 0x18]
call fcn.0040381c
mov eax, dword [ebp - 0x1c]
call fcn.0040381c
ret