Function at 0x504938
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2a
push 0
push 0
dec ecx
jne 0x504940
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x504dd1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
cmp dword [esi + 8], 0
je 0x504d9e
mov byte [ebp - 9], 1
xor eax, eax
push ebp
push 0x504d97
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [esi + 4], eax
lea eax, [ebp - 4]
push eax
mov edx, dword [esi + 8]
lea eax, [ebp - 0x1c]
mov ecx, 0x504dec
call fcn.004055f4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x504df8
call fcn.0040f0f4
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0040db08
mov eax, dword [ebp - 0x20]
mov edx, 0x504ef4
call fcn.0047a168
dec eax
jle 0x5049d4
call fcn.00404cd8
jmp 0x504d9e
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00494d64
mov edi, eax
cmp dword [ebp - 0x10], 0
je 0x504d7e
cmp edi, 0x65
je 0x504d7e
mov eax, dword [esi + 4]
inc eax
push eax
lea eax, [esi + 0x10]
mov ecx, 1
mov edx, dword [0x507d84]
call fcn.004065d8
add esp, 4
mov eax, dword [esi + 4]
add eax, eax
add eax, eax
add eax, eax
lea eax, [eax + eax*4]
mov edx, dword [esi + 0x10]
lea ebx, [edx + eax*8]
mov eax, dword [esi + 4]
add eax, eax
add eax, eax
add eax, eax
lea eax, [eax + eax*4]
mov edx, dword [esi + 0x10]
lea eax, [edx + eax*8]
xor ecx, ecx
mov edx, 0x140
call fcn.00403b98
lea eax, [ebp - 0x124]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00495924
mov edx, dword [ebp - 0x124]
lea eax, [ebp - 0x120]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x120]
lea eax, [ebx + 0x15]
mov cl, 0x10
call fcn.00403a88
lea eax, [ebp - 0x128]
push eax
mov ecx, 1
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00495924
mov edx, dword [ebp - 0x128]
lea eax, [ebp - 0x120]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x120]
lea eax, [ebx + 0x26]
mov cl, 0xa
call fcn.00403a88
lea eax, [ebp - 0x12c]
push eax
mov ecx, 2
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00495924
mov edx, dword [ebp - 0x12c]
lea eax, [ebp - 0x120]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x120]
lea eax, [ebx + 0x31]
mov cl, 0x14
call fcn.00403a88
mov ecx, 3
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00495900
fstp qword [ebx + 4]
wait
mov ecx, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00495900
fstp qword [ebx + 0xc]
wait
lea eax, [ebp - 0x130]
push eax
mov ecx, 5
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00495924
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0x120]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x120]
lea eax, [ebx + 0x46]
mov cl, 0xe
call fcn.00403a88
lea eax, [ebp - 0x134]
push eax
mov ecx, 6
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00495924
mov edx, dword [ebp - 0x134]
lea eax, [ebp - 0x120]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x120]
lea eax, [ebx + 0x55]
mov cl, 0xe
call fcn.00403a88
lea eax, [ebp - 0x138]
push eax
mov ecx, 7
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00495924
mov edx, dword [ebp - 0x138]
lea eax, [ebp - 0x120]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x120]
lea eax, [ebx + 0xdc]
mov cl, 0xd
call fcn.00403a88
lea eax, [ebp - 0x13c]
push eax
mov ecx, 8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00495924
mov edx, dword [ebp - 0x13c]
lea eax, [ebp - 0x120]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x120]
lea eax, [ebx + 0x86]
mov cl, 0x28
call fcn.00403a88
lea eax, [ebp - 0x140]
push eax
mov ecx, 9
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00495924
mov edx, dword [ebp - 0x140]
lea eax, [ebp - 0x120]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x120]
lea eax, [ebx + 0x64]
mov cl, 0x14
call fcn.00403a88
lea eax, [ebp - 0x144]
push eax
mov ecx, 0xa
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00495924
mov edx, dword [ebp - 0x144]
lea eax, [ebp - 0x120]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x120]
lea eax, [ebx + 0x79]
mov cl, 0xc
call fcn.00403a88
lea eax, [ebp - 0x148]
push eax
mov ecx, 0xb
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00495924
mov edx, dword [ebp - 0x148]
lea eax, [ebp - 0x120]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x120]
lea eax, [ebx + 0xaf]
mov cl, 0x14
call fcn.00403a88
lea eax, [ebp - 0x14c]
push eax
mov ecx, 0xc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00495924
mov edx, dword [ebp - 0x14c]
lea eax, [ebp - 0x120]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x120]
lea eax, [ebx + 0xc4]
mov cl, 0xc
call fcn.00403a88
lea eax, [ebp - 0x150]
push eax
mov ecx, 0xd
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00495924
mov edx, dword [ebp - 0x150]
lea eax, [ebp - 0x120]
mov ecx, 0xff
call fcn.00405578
lea edx, [ebp - 0x120]
lea eax, [ebx + 0xd1]
mov cl, 0xa
call fcn.00403a88
mov ecx, 0xe
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00495918
mov byte [ebx + 0x14], al
inc dword [esi + 4]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0049501c
mov edi, eax
cmp edi, 0x65
jne 0x5049f7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504d9e
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00495004
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504dd8
lea eax, [ebp - 0x150]
mov edx, 0xc
call fcn.00405300
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00405300
lea eax, [ebp - 4]
call fcn.004052dc
ret