Function at 0x507bc0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x507bc8
push ecx
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x508118
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
push 0x508130
lea edx, [ebp - 0xc]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004eef34
push dword [ebp - 0xc]
push 0x508220
lea edx, [ebp - 0x10]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004ef0e8
push dword [ebp - 0x10]
push 0x508238
lea edx, [ebp - 0x14]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004ef0fc
push dword [ebp - 0x14]
push 0x50824c
lea eax, [ebp - 8]
mov edx, 7
call fcn.00404da8
mov eax, dword [0x53d50c]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov edx, dword [ebx + 0x388]
call fcn.004eeaa4
test al, al
je 0x5080ed
mov eax, dword [ebx + 0x388]
call fcn.00484674
mov eax, dword [ebx + 0x320]
mov eax, dword [eax + 0x22c]
call fcn.004a9030
jmp 0x5080ad
mov eax, dword [ebx + 0x320]
mov eax, dword [eax + 0x22c]
call fcn.004a8ed4
mov esi, eax
mov edx, 0x508270
mov eax, dword [ebx + 0x388]
call fcn.004832e4
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.0040925c
mov edx, dword [ebp - 0x18]
mov eax, esi
call fcn.004a8974
mov edx, 0x508280
mov eax, dword [ebx + 0x388]
call fcn.004832e4
lea edx, [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0040925c
mov edx, dword [ebp - 0x20]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x28]
push eax
mov edx, 0x508290
mov eax, dword [ebx + 0x388]
call fcn.004832e4
mov edx, dword [eax]
call dword [edx + 0x54]
fstp xword [ebp - 0x3c]
wait
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 3
lea edx, [ebp - 0x30]
xor ecx, ecx
mov eax, 0x5082a0
call fcn.0040a424
mov edx, dword [ebp - 0x28]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x40]
push eax
mov edx, 0x5082b0
mov eax, dword [ebx + 0x388]
call fcn.004832e4
mov edx, dword [eax]
call dword [edx + 0x54]
fstp xword [ebp - 0x3c]
wait
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 3
lea edx, [ebp - 0x30]
xor ecx, ecx
mov eax, 0x5082a0
call fcn.0040a424
mov edx, dword [ebp - 0x40]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x44]
push eax
mov edx, 0x5082bc
mov eax, dword [ebx + 0x388]
call fcn.004832e4
mov edx, dword [eax]
call dword [edx + 0x54]
fstp xword [ebp - 0x3c]
wait
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 3
lea edx, [ebp - 0x30]
xor ecx, ecx
mov eax, 0x5082a0
call fcn.0040a424
mov edx, dword [ebp - 0x44]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x5082c8
mov eax, dword [ebx + 0x388]
call fcn.004832e4
lea edx, [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x48]
mov edx, 0x5082d8
call fcn.00404e2c
jne 0x507de2
mov edx, 0x5082e4
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x507def
mov edx, 0x5082f4
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x508304
mov eax, dword [ebx + 0x388]
call fcn.004832e4
lea edx, [ebp - 0x50]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.0040925c
mov edx, dword [ebp - 0x4c]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x508318
mov eax, dword [ebx + 0x388]
call fcn.004832e4
lea edx, [ebp - 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 8]
call fcn.0040925c
lea eax, [ebp - 0x5c]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404f40
push dword [ebp - 0x5c]
push 0x508328
lea eax, [ebp - 0x60]
push eax
mov ecx, 2
mov edx, 5
mov eax, dword [ebp - 8]
call fcn.00404f40
push dword [ebp - 0x60]
push 0x508328
lea eax, [ebp - 0x64]
push eax
mov ecx, 2
mov edx, 7
mov eax, dword [ebp - 8]
call fcn.00404f40
push dword [ebp - 0x64]
lea eax, [ebp - 0x58]
mov edx, 5
call fcn.00404da8
mov edx, dword [ebp - 0x58]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x508334
mov eax, dword [ebx + 0x388]
call fcn.004832e4
lea edx, [ebp - 0x68]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x68]
mov edx, 0x508344
call fcn.00404e2c
jne 0x507ee3
mov edx, 0x508350
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x507ef0
mov edx, 0x50835c
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x508368
mov eax, dword [ebx + 0x388]
call fcn.004832e4
lea edx, [ebp - 0x70]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x6c]
call fcn.0040925c
mov edx, dword [ebp - 0x6c]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x508378
mov eax, dword [ebx + 0x388]
call fcn.004832e4
lea edx, [ebp - 0x78]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x74]
call fcn.0040925c
mov edx, dword [ebp - 0x74]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x508388
mov eax, dword [ebx + 0x388]
call fcn.004832e4
lea edx, [ebp - 0x80]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x7c]
call fcn.0040925c
mov eax, dword [ebp - 0x7c]
mov edx, 0x5082d8
call fcn.00404e2c
jne 0x507f8d
mov edx, 0x508398
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x507f9a
mov edx, 0x5083a8
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x5083b8
mov eax, dword [ebx + 0x388]
call fcn.004832e4
lea edx, [ebp - 0x88]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.0040925c
mov eax, dword [ebp - 0x84]
mov edx, 0x5082d8
call fcn.00404e2c
jne 0x507fe7
mov edx, 0x5082e4
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x507ff4
mov edx, 0x5083c8
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x5083dc
mov eax, dword [ebx + 0x388]
call fcn.004832e4
lea edx, [ebp - 0x8c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 8]
call fcn.0040925c
lea eax, [ebp - 0x94]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404f40
push dword [ebp - 0x94]
push 0x508328
lea eax, [ebp - 0x98]
push eax
mov ecx, 2
mov edx, 5
mov eax, dword [ebp - 8]
call fcn.00404f40
push dword [ebp - 0x98]
push 0x508328
lea eax, [ebp - 0x9c]
push eax
mov ecx, 2
mov edx, 7
mov eax, dword [ebp - 8]
call fcn.00404f40
push dword [ebp - 0x9c]
lea eax, [ebp - 0x90]
mov edx, 5
call fcn.00404da8
mov edx, dword [ebp - 0x90]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x388]
call fcn.0048498c
mov eax, dword [ebx + 0x388]
cmp byte [eax + 0xa1], 0
je 0x507c7b
mov eax, dword [ebx + 0x320]
call fcn.004ac434
test eax, eax
jne 0x5080e9
xor edx, edx
mov eax, dword [ebx + 0x328]
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor edx, edx
mov eax, dword [ebx + 0x32c]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50811f
lea eax, [ebp - 0x9c]
mov edx, 0x18
call fcn.00404a54
lea eax, [ebp - 0x28]
mov edx, 9
call fcn.00404a54
ret