Function at 0x1001ae0b
Capabilities:
Check for time delay via gettickcount
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x100556d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x2c], 0
jne 0x1001ae2e
xor eax, eax
jmp 0x1001b15b
push 0
mov eax, dword [ebp - 0x30]
push dword [eax + 0x2c]
call fcn.1001b38c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30]
call fcn.1001ac32
mov ecx, eax
call fcn.1001abf5
push eax
push 1
mov eax, dword [ebp - 0x30]
push dword [eax + 0x2c]
call fcn.1001b228
add esp, 0xc
test eax, eax
je 0x1001aea9
mov ecx, dword [ebp - 0x30]
call fcn.1001ac5e
mov ecx, eax
call fcn.1001abf5
push eax
push 4
mov eax, dword [ebp - 0x30]
push dword [eax + 0x2c]
call fcn.1001b228
add esp, 0xc
test eax, eax
je 0x1001aea9
mov ecx, dword [ebp - 0x30]
call fcn.1001ac23
mov ecx, eax
call fcn.1001abf5
push eax
push 2
mov eax, dword [ebp - 0x30]
push dword [eax + 0x2c]
call fcn.1001b228
add esp, 0xc
test eax, eax
jne 0x1001aeb0
xor eax, eax
jmp 0x1001b15b
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax + 0x35]
test eax, eax
jne 0x1001aff8
push 0
push 0
push str.SQL_STATION
push 0
push 0
push 0x13
call fcn.100131d0
add esp, 0x18
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x1c], eax
push 0
push 0
push str.SQL_USER
push 0
push 0
push 0x13
call fcn.100131d0
add esp, 0x18
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0x1c], eax
push 0
push 0
push str.SQL_FIRM
push 0
push 0
push 0x13
call fcn.100131d0
add esp, 0x18
push 4
pop ecx
shl ecx, 1
mov dword [ebp + ecx - 0x1c], eax
push 0
push 0
push str.SQL_CDSTE
push 0
push 0
push 0x13
call fcn.100131d0
add esp, 0x18
push 4
pop ecx
imul ecx, ecx, 3
mov dword [ebp + ecx - 0x1c], eax
push 0
push 0
push str.SQL_LNGWIN
push 0
push 0
push 0x13
call fcn.100131d0
add esp, 0x18
push 4
pop ecx
shl ecx, 2
mov dword [ebp + ecx - 0x1c], eax
push 4
pop eax
imul eax, eax, 5
and dword [ebp + eax - 0x1c], 0
call fcn.10019280
push 4
pop ecx
imul ecx, ecx, 0
mov ecx, dword [ebp + ecx - 0x1c]
mov ecx, dword [ecx + 0x12]
mov dword [ecx], eax
call fcn.100025aa
push 4
pop ecx
shl ecx, 0
mov ecx, dword [ebp + ecx - 0x1c]
mov ecx, dword [ecx + 0x12]
mov eax, dword [eax + 8]
mov dword [ecx], eax
call fcn.100025aa
push 4
pop ecx
shl ecx, 1
mov ecx, dword [ebp + ecx - 0x1c]
mov ecx, dword [ecx + 0x12]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
call fcn.100025aa
push 4
pop ecx
imul ecx, ecx, 3
mov ecx, dword [ebp + ecx - 0x1c]
mov ecx, dword [ecx + 0x12]
mov eax, dword [eax + 0x51a]
mov dword [ecx], eax
call fcn.100025aa
movzx eax, byte [eax + 0x2f3]
push 4
pop ecx
shl ecx, 2
mov ecx, dword [ebp + ecx - 0x1c]
mov ecx, dword [ecx + 0x12]
mov dword [ecx], eax
lea eax, [ebp - 0x1c]
push eax
push 1
mov eax, dword [ebp - 0x30]
push dword [eax + 0x2c]
call fcn.1001b228
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x44], eax
movzx eax, byte [ebp + 0xc]
push eax
movzx eax, byte [ebp + 8]
push eax
mov eax, dword [ebp - 0x30]
push dword [eax + 0x2c]
call fcn.1001b2d9
add esp, 0xc
mov dword [ebp - 0x48], eax
call fcn.100025aa
mov eax, dword [eax + 0x1a]
shr eax, 6
and eax, 1
je 0x1001b0dd
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x30], 0
je 0x1001b044
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x3c], eax
jmp 0x1001b04d
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x13]
mov ecx, dword [ebp - 0x34]
mov eax, dword [eax]
push dword [ecx + 0x13]
call dword [eax + 0x22c]
cmp dword [ebp - 0x38], 0
je 0x1001b0dd
call fcn.10014000
mov eax, dword [eax + 0x34]
and eax, 0x40
je 0x1001b0b7
push dword [ebp - 0x34]
call fcn.1001b3d0
pop ecx
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
push 0
push dword [0x10055988]
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x44]
push eax
call fcn.1001b58c
add esp, 0x18
push dword [ebp - 0x34]
call fcn.10004bb3
push dword [ebp - 0x38]
call fcn.1001b4eb
pop ecx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x13]
mov ecx, dword [ebp - 0x34]
mov eax, dword [eax]
push dword [ecx + 0x13]
call dword [eax + 0x230]
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax + 0x35]
test eax, eax
jne 0x1001b129
push 4
pop eax
imul eax, eax, 0
push dword [ebp + eax - 0x1c]
call fcn.10013270
pop ecx
push 4
pop eax
shl eax, 0
push dword [ebp + eax - 0x1c]
call fcn.10013270
pop ecx
push 4
pop eax
shl eax, 1
push dword [ebp + eax - 0x1c]
call fcn.10013270
pop ecx
push 4
pop eax
imul eax, eax, 3
push dword [ebp + eax - 0x1c]
call fcn.10013270
pop ecx
jmp 0x1001b158
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1001b158
lea eax, [ebp - 0x2c]
push eax
call fcn.1001ac03
pop ecx
cmp dword [ebp - 0x2c], 0xc
jne 0x1001b158
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax + 0x36]
test eax, eax
je 0x1001b158
mov eax, dword [ebp - 0x30]
push dword [eax + 0x2c]
call fcn.1001b298
pop ecx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001b893
leave
ret 8