Function at 0x508a14
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x508a1c
push ecx
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x509119
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi + 0x704]
mov edx, 0x509130
call fcn.00404b00
je 0x508a5f
mov eax, dword [edi + 0x704]
mov edx, 0x50913c
call fcn.00404b00
jne 0x508aeb
lea eax, [ebp - 4]
mov edx, 0x509148
call fcn.0040479c
mov eax, dword [0x516dac]
mov eax, dword [eax]
mov ebx, dword [eax + 0x5c]
mov eax, ebx
call fcn.004ae954
mov eax, ebx
call fcn.004c6240
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, ebx
call fcn.004c4674
mov edx, 0x5091d4
call fcn.004bc77c
push eax
lea eax, [ebp - 0x14]
mov edx, dword [edi + 0x714]
call fcn.0040578c
lea edx, [ebp - 0x14]
pop eax
call fcn.004bda24
lea edx, [ebp - 0x28]
mov eax, dword [edi + 0x358]
call fcn.00440b8c
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
call fcn.0040578c
lea eax, [ebp - 0x24]
push eax
mov eax, ebx
call fcn.004c4674
mov edx, 0x5091e8
call fcn.004bc77c
pop edx
call fcn.004bda24
jmp 0x508b41
lea eax, [ebp - 4]
mov edx, 0x5091fc
call fcn.0040479c
mov eax, dword [0x516dac]
mov eax, dword [eax]
mov ebx, dword [eax + 0x5c]
mov eax, ebx
call fcn.004ae954
mov eax, ebx
call fcn.004c6240
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, ebx
call fcn.004c4674
mov edx, 0x5091d4
call fcn.004bc77c
push eax
lea eax, [ebp - 0x38]
mov edx, dword [edi + 0x714]
call fcn.0040578c
lea edx, [ebp - 0x38]
pop eax
call fcn.004bda24
mov eax, dword [0x516dac]
mov eax, dword [eax]
mov esi, dword [eax + 0x5c]
mov eax, esi
call fcn.004ae948
mov edx, 1
mov eax, dword [edi + 0x440]
call fcn.00472184
mov ecx, 0x3a
xor edx, edx
mov eax, dword [edi + 0x440]
call fcn.004721e0
push 0x509130
xor ecx, ecx
xor edx, edx
mov eax, dword [edi + 0x440]
call fcn.00474724
push 0
mov ecx, 1
xor edx, edx
mov eax, dword [edi + 0x440]
call fcn.00474724
push 0
mov ecx, 2
xor edx, edx
mov eax, dword [edi + 0x440]
call fcn.00474724
push 0
mov ecx, 3
xor edx, edx
mov eax, dword [edi + 0x440]
call fcn.00474724
jmp 0x508fb8
xor ebx, ebx
mov eax, dword [edi + 0x704]
mov edx, 0x509280
call fcn.00404b00
je 0x508bef
mov eax, dword [edi + 0x704]
mov edx, 0x509130
call fcn.00404b00
jne 0x508bf3
mov bl, 1
jmp 0x508c5b
mov eax, dword [edi + 0x438]
cmp byte [eax + 0x238], 0
je 0x508c27
mov edx, 0x50928c
mov eax, esi
call fcn.004af95c
lea edx, [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x3c]
mov edx, 0x50929c
call fcn.00404b00
jne 0x508c27
mov bl, 1
mov eax, dword [edi + 0x438]
cmp byte [eax + 0x238], 0
jne 0x508c5b
mov edx, 0x50928c
mov eax, esi
call fcn.004af95c
lea edx, [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x40]
mov edx, 0x50929c
call fcn.00404b00
je 0x508c5b
mov bl, 1
test bl, bl
je 0x508fb1
mov eax, dword [edi + 0x440]
mov edx, dword [eax + 0x21c]
dec edx
mov ecx, 0x3a
call fcn.004721e0
push 0
mov eax, dword [edi + 0x440]
mov edx, dword [eax + 0x21c]
dec edx
mov ecx, 1
call fcn.00474724
push 0
mov eax, dword [edi + 0x440]
mov edx, dword [eax + 0x21c]
dec edx
mov ecx, 2
call fcn.00474724
push 0
mov eax, dword [edi + 0x440]
mov edx, dword [eax + 0x21c]
dec edx
mov ecx, 3
call fcn.00474724
mov edx, 0x5092a8
mov eax, esi
call fcn.004af95c
lea edx, [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [edi + 0x440]
mov edx, dword [ebx + 0x21c]
dec edx
xor ecx, ecx
mov eax, ebx
call fcn.00474724
mov eax, dword [edi + 0x704]
mov edx, 0x509130
call fcn.00404b00
je 0x508d17
mov eax, dword [edi + 0x704]
mov edx, 0x50913c
call fcn.00404b00
jne 0x508d4a
mov edx, 0x5092b4
mov eax, esi
call fcn.004af95c
lea edx, [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [edi + 0x440]
mov edx, dword [ebx + 0x21c]
dec edx
mov ecx, 1
mov eax, ebx
call fcn.00474724
jmp 0x508dac
mov edx, 0x5092b4
mov eax, esi
call fcn.004af95c
lea edx, [ebp - 0x50]
mov ecx, dword [eax]
call dword [ecx + 0x60]
push dword [ebp - 0x50]
push 0x5092c4
mov edx, 0x5092d0
mov eax, esi
call fcn.004af95c
lea edx, [ebp - 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x60]
push dword [ebp - 0x54]
push 0x5092e0
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.00404a7c
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [edi + 0x440]
mov edx, dword [ebx + 0x21c]
dec edx
mov ecx, 1
mov eax, ebx
call fcn.00474724
mov edx, 0x5092ec
mov eax, esi
call fcn.004af95c
mov edx, dword [eax]
call dword [edx + 0x54]
fcomp dword [0x5092f4]
fnstsw ax
sahf
jbe 0x508e53
mov edx, 0x509300
mov eax, esi
call fcn.004af95c
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebp - 0x60], eax
fild dword [ebp - 0x60]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x5c]
mov eax, 0x50930c
call fcn.0040aa7c
push dword [ebp - 0x5c]
push 0x509318
mov edx, 0x5092ec
mov eax, esi
call fcn.004af95c
mov edx, dword [eax]
call dword [edx + 0x54]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x64]
mov eax, 0x509324
call fcn.0040aa7c
push dword [ebp - 0x64]
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.00404a7c
mov eax, dword [ebp - 0x58]
push eax
mov ebx, dword [edi + 0x440]
mov edx, dword [ebx + 0x21c]
dec edx
mov ecx, 2
mov eax, ebx
call fcn.00474724
jmp 0x508e9b
mov edx, 0x509300
mov eax, esi
call fcn.004af95c
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebp - 0x60], eax
fild dword [ebp - 0x60]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x68]
mov eax, 0x50930c
call fcn.0040aa7c
mov eax, dword [ebp - 0x68]
push eax
mov ebx, dword [edi + 0x440]
mov edx, dword [ebx + 0x21c]
dec edx
mov ecx, 2
mov eax, ebx
call fcn.00474724
mov edx, 0x509334
mov eax, esi
call fcn.004af95c
mov edx, dword [eax]
call dword [edx + 0x54]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x6c]
mov eax, 0x509344
call fcn.0040aa7c
mov eax, dword [ebp - 0x6c]
push eax
mov ebx, dword [edi + 0x440]
mov edx, dword [ebx + 0x21c]
dec edx
mov ecx, 3
mov eax, ebx
call fcn.00474724
mov edx, 0x509354
mov eax, esi
call fcn.004af95c
mov edx, dword [eax]
call dword [edx + 0x54]
fcomp dword [0x5092f4]
fnstsw ax
sahf
je 0x508f9f
lea eax, [ebp - 0x74]
push eax
mov eax, dword [edi + 0x440]
mov edx, dword [eax + 0x21c]
dec edx
mov ecx, 3
mov ebx, dword [edi + 0x440]
mov eax, ebx
call fcn.004746a4
push dword [ebp - 0x74]
push 0x509364
mov edx, 0x509334
mov eax, esi
call fcn.004af95c
mov edx, dword [eax]
call dword [edx + 0x54]
fmul dword [0x509368]
fstp xword [ebp - 0x84]
wait
mov edx, 0x509354
mov eax, esi
call fcn.004af95c
mov edx, dword [eax]
call dword [edx + 0x54]
fld xword [ebp - 0x84]
fdivrp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x78]
mov eax, 0x50930c
call fcn.0040aa7c
push dword [ebp - 0x78]
push 0x5092e0
lea eax, [ebp - 0x70]
mov edx, 4
call fcn.00404a7c
mov eax, dword [ebp - 0x70]
push eax
mov edx, dword [ebx + 0x21c]
dec edx
mov ecx, 3
mov eax, ebx
call fcn.00474724
mov eax, dword [edi + 0x440]
mov edx, dword [eax + 0x21c]
inc edx
call fcn.00472184
mov eax, esi
call fcn.004b1004
cmp byte [esi + 0xa1], 0
je 0x508bc9
mov ebx, dword [edi + 0x440]
mov esi, dword [ebx + 0x21c]
cmp esi, 1
jne 0x508fe8
mov edx, 0x509130
mov eax, dword [edi + 0x35c]
call fcn.00440bbc
jmp 0x509025
lea eax, [ebp - 0x8c]
push eax
mov edx, esi
sub edx, 2
xor ecx, ecx
mov eax, ebx
call fcn.004746a4
mov eax, dword [ebp - 0x8c]
call fcn.00506158
inc eax
lea edx, [ebp - 0x88]
call fcn.004092f0
mov edx, dword [ebp - 0x88]
mov eax, dword [edi + 0x35c]
call fcn.00440bbc
mov eax, dword [edi + 0x440]
mov edx, dword [eax + 0x21c]
cmp edx, 1
jle 0x50903c
dec edx
call fcn.00472184
mov eax, dword [edi + 0x704]
mov edx, 0x509280
call fcn.00404b00
je 0x509060
mov eax, dword [edi + 0x704]
mov edx, 0x509130
call fcn.00404b00
jne 0x50908c
mov edx, dword [edi + 0x440]
mov eax, dword [edx + 0x21c]
cmp eax, 0xe
jle 0x509081
cmp eax, 0xe
jle 0x5090b6
sub eax, 0xe
xchg edx, eax
call fcn.0047248c
jmp 0x5090b6
mov eax, edx
xor edx, edx
call fcn.0047248c
jmp 0x5090b6
mov edx, dword [edi + 0x440]
mov eax, dword [edx + 0x21c]
cmp eax, 0xd
jle 0x5090ad
cmp eax, 0xd
jle 0x5090b6
sub eax, 0xd
xchg edx, eax
call fcn.0047248c
jmp 0x5090b6
mov eax, edx
xor edx, edx
call fcn.0047248c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509120
lea eax, [ebp - 0x8c]
mov edx, 2
call fcn.00404728
lea eax, [ebp - 0x78]
mov edx, 6
call fcn.00404728
lea eax, [ebp - 0x5c]
mov edx, 9
call fcn.00404728
lea eax, [ebp - 0x38]
call fcn.00405800
lea eax, [ebp - 0x28]
call fcn.00404704
lea eax, [ebp - 0x24]
mov edx, dword [0x40113c]
mov ecx, 2
call fcn.004052f8
lea eax, [ebp - 4]
call fcn.00404704
ret