Function at 0x50d084
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x50d08c
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x50d353
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x3b0]
xor edx, edx
call fcn.00449478
push 0
mov ecx, 0x50d36c
mov edx, 0x50d39c
mov eax, ebx
call fcn.0050eadc
test al, al
je 0x50d302
mov eax, ebx
call fcn.0050ce84
test al, al
je 0x50d302
xor edx, edx
push ebp
push 0x50d2ec
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, 0x51affc
mov edx, 0x50d3ac
call fcn.004052ec
mov eax, dword [ebx + 0x388]
push eax
mov cl, 1
mov edx, dword [0x51affc]
mov eax, ebx
call fcn.0050b7dc
lea ecx, [ebp - 0x20]
mov eax, dword [ebx + 0x388]
mov edx, 0x50d424
call fcn.0049fe74
lea eax, [ebp - 0x20]
call fcn.004134dc
mov esi, eax
test esi, esi
jne 0x50d13f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50d302
push 0x50d438
lea edx, [ebp - 0x24]
mov eax, esi
call fcn.0040a618
push dword [ebp - 0x24]
push 0x50d6a0
push 0x50d6bc
push 0x50d6f4
push 0x50d720
lea edx, [ebp - 0x28]
mov eax, esi
call fcn.0040a618
push dword [ebp - 0x28]
push 0x50d740
push 0x50d784
push 0x50d7a4
push 0x50d7d8
push 0x50d840
mov eax, 0x51affc
mov edx, 0xc
call fcn.0040562c
mov eax, dword [ebx + 0x3ac]
push eax
mov cl, 1
mov edx, dword [0x51affc]
mov eax, ebx
call fcn.0050b7dc
lea ecx, [ebp - 0x38]
mov eax, dword [ebx + 0x3ac]
mov edx, 0x50d8a0
call fcn.0049fe74
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x48]
xor edx, edx
mov cl, 1
call fcn.00416cb4
lea edx, [ebp - 0x48]
pop eax
call fcn.0041aba8
jle 0x50d2bd
push 0x50d8b0
lea edx, [ebp - 0x4c]
mov eax, esi
call fcn.0040a618
push dword [ebp - 0x4c]
push 0x50d99c
mov eax, 0x51affc
mov edx, 3
call fcn.0040562c
mov eax, dword [ebx + 0x3ac]
push eax
mov cl, 1
mov edx, dword [0x51affc]
mov eax, ebx
call fcn.0050b7dc
test eax, eax
jle 0x50d2bd
lea ecx, [ebp - 0x5c]
mov eax, dword [ebx + 0x3ac]
mov edx, 0x50d9cc
call fcn.0049fe74
lea eax, [ebp - 0x5c]
call fcn.00414e3c
fstp qword [ebp - 8]
wait
lea ecx, [ebp - 0x6c]
mov eax, dword [ebx + 0x3ac]
mov edx, 0x50d9dc
call fcn.0049fe74
lea eax, [ebp - 0x6c]
call fcn.00414e3c
fstp qword [ebp - 0x10]
wait
fld qword [ebp - 8]
fcomp qword [ebp - 0x10]
wait
fnstsw ax
sahf
jbe 0x50d2ae
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004818e8
push edx
push eax
mov eax, dword [ebx + 0x41c]
cdq
cmp edx, dword [esp + 4]
jne 0x50d299
cmp eax, dword [esp]
pop edx
pop eax
jae 0x50d2bd
jmp 0x50d29d
pop edx
pop eax
jge 0x50d2bd
mov eax, dword [ebx + 0x3a8]
xor ecx, ecx
mov edx, esi
call sub.Funciones.dll_ControlSincro
jmp 0x50d2bd
mov eax, dword [ebx + 0x3a8]
xor ecx, ecx
mov edx, esi
call sub.Funciones.dll_ControlSincro
imul eax, dword [ebx + 0x420], 0x3c
imul edx, eax, 0x3e8
mov eax, dword [ebx + 0x3b0]
call fcn.00449488
mov eax, dword [ebx + 0x3b0]
mov dl, 1
call fcn.00449478
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50d302
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50d35a
lea eax, [ebp - 0x6c]
mov edx, dword [0x401144]
mov ecx, 2
call fcn.00406044
lea eax, [ebp - 0x4c]
call fcn.00405298
lea eax, [ebp - 0x48]
mov edx, dword [0x401144]
mov ecx, 2
call fcn.00406044
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004052bc
lea eax, [ebp - 0x20]
call fcn.004127bc
ret