Function at 0x5538d8
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x553ba5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
call fcn.004d7108
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov dl, 1
call fcn.004d7964
mov dl, 1
mov eax, dword [0x41c830]
call fcn.00403ebc
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x553b78
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa0], eax
mov byte [ebp - 0x9c], 0
lea edx, [ebp - 0xa0]
xor ecx, ecx
mov eax, 0x553bc0
call fcn.0040b194
lea edx, [ebp - 0xa4]
mov eax, dword [ebp - 4]
call fcn.00409570
mov eax, dword [ebp - 0xa4]
mov edx, 0x553c78
call fcn.0047fcbc
dec eax
jle 0x55399c
call fcn.0040484c
jmp 0x553b7f
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.004d8adc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0
je 0x553ae4
cmp dword [ebp - 0x18], 0x65
je 0x553ae4
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004d9c08
mov dword [ebp - 0x1c], eax
mov ecx, 1
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004d9c08
mov esi, eax
mov ecx, 2
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004d9c08
mov edi, eax
push 3
mov eax, dword [ebp - 0x14]
push eax
call fcn.004f912c
add esp, 8
mov ebx, eax
test esi, esi
jg 0x553a15
test edi, edi
jg 0x553a15
test ebx, ebx
jle 0x553acc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp - 0x1c]
call fcn.004d77c8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov edx, esi
call fcn.004d77b4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov edx, edi
call fcn.004d77b4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov edx, ebx
call fcn.004d77b4
test ebx, ebx
jle 0x553a8b
mov eax, dword [ebp - 0x20]
call fcn.00421910
mov edx, ebx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
push eax
push ebx
mov ecx, 3
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004d9ba0
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov ecx, ebx
call fcn.004213e0
lea eax, [ebp - 0x98]
xor ecx, ecx
mov edx, 0x78
call fcn.004037b4
lea eax, [ebp - 0x98]
push eax
push 0x78
mov ecx, 4
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004d9ba0
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov ecx, 0x78
call fcn.004213e0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004d9050
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x65
jne 0x5539c1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
call fcn.0042117c
cmp edx, 0
jne 0x553afd
cmp eax, 0x200
jbe 0x553b2a
jmp 0x553aff
jle 0x553b2a
lea edx, [ebp - 0xa8]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
call fcn.004d7690
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xc]
add eax, 0xc
call fcn.00404e60
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x10], 1
jmp 0x553b53
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
call fcn.004d7378
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 0xc]
add eax, 0xc
call fcn.00404e60
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x10], 0
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x553b7f
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004d8d7c
mov eax, dword [ebp - 0x20]
call fcn.00403eec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x553bac
lea eax, [ebp - 0xac]
mov edx, 3
call fcn.00404e30
lea eax, [ebp - 4]
call fcn.00404e0c
ret