Function at 0x1013f0d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
mov eax, dword [0x101d8724]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x101eb6b4]
cmp eax, 0xbb8
jae 0x1013f100
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1013f0e3
push 0x101e7708
push str..mailslot_s_response
lea eax, [ebp - 0x630]
push eax
call fcn.1014ea28
add esp, 0xc
push 0x101e7708
push str.mailslot_squery
lea ecx, [ebp - 0x830]
push ecx
call fcn.1014ea28
add esp, 0xc
mov dword [ebp - 0x30], 0
jmp 0x1013f144
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0x100
jge 0x1013f15d
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0x430], 0
jmp 0x1013f13b
push 0x1d
lea ecx, [ebp - 0x85c]
push ecx
call fcn.1013f4a0
add esp, 8
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x630]
push eax
call fcn.1013ee60
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x1013f190
or eax, 0xffffffff
jmp 0x1013f48d
mov dword [0x101eb6a8], 0
call fcn.1013f4e0
mov word [ebp - 0x834], ax
mov dword [ebp - 0x28], 0
movzx edx, word [ebp - 0x834]
test edx, edx
je 0x1013f2a2
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1013f227
movzx ecx, word [ebp - 0x834]
add ecx, dword [ebp - 0x28]
mov dword [ebp - 0x28], ecx
movzx edx, word [ebp - 0x834]
cmp edx, 1
jle 0x1013f225
mov eax, dword [0x101eb6a8]
imul eax, eax, 0x1f
add eax, 0x101e97a8
mov dword [ebp - 0x86c], eax
mov ecx, dword [0x101eb6a8]
add ecx, 1
mov dword [0x101eb6a8], ecx
movzx edx, word [ebp - 0x834]
sub edx, 1
push edx
lea eax, [ebp - 0x859]
push eax
push str._s___u_
mov ecx, dword [ebp - 0x86c]
push ecx
call fcn.1014ea28
add esp, 0x10
jmp 0x1013f27b
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
movzx eax, word [ebp - 0x834]
cmp eax, 1
jle 0x1013f27b
mov ecx, dword [0x101eb6a8]
imul ecx, ecx, 0x1f
add ecx, 0x101e97a8
mov dword [ebp - 0x870], ecx
mov edx, dword [0x101eb6a8]
add edx, 1
mov dword [0x101eb6a8], edx
lea eax, [ebp - 0x859]
push eax
push 0x101a7368
mov ecx, dword [ebp - 0x870]
push ecx
call fcn.1014ea28
add esp, 0xc
push 0xffffffffffffffff
lea edx, [ebp - 0x859]
push edx
call fcn.1014e8a0
add esp, 4
push eax
lea eax, [ebp - 0x859]
push eax
call fcn.101153c0
add esp, 0xc
mov dword [ebp - 0x430], eax
lea ecx, [ebp - 0x838]
push ecx
lea edx, [ebp - 0x830]
push edx
call fcn.1013eea0
add esp, 8
mov dword [ebp - 0x860], 0
jmp 0x1013f2d3
mov eax, dword [ebp - 0x860]
add eax, 1
mov dword [ebp - 0x860], eax
cmp dword [ebp - 0x860], 3
jge 0x1013f464
lea ecx, [ebp - 0x85c]
push ecx
movzx edx, word [ebp - 0x834]
push edx
mov eax, dword [ebp - 0x838]
push eax
call fcn.1013ef00
add esp, 0xc
mov ecx, 1
test ecx, ecx
je 0x1013f45f
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x83c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1013ef90
add esp, 0xc
movzx edx, al
test edx, edx
jne 0x1013f32e
jmp 0x1013f45f
push 0xffffffffffffffff
lea eax, [ebp - 0x24]
push eax
call fcn.1014e8a0
add esp, 4
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.101153c0
add esp, 0xc
mov dword [ebp - 0x868], eax
mov byte [ebp - 0x861], 0
mov dword [ebp - 0x30], 0
jmp 0x1013f368
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0x100
jge 0x1013f39b
mov eax, dword [ebp - 0x30]
cmp dword [ebp + eax*4 - 0x430], 0
je 0x1013f39b
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x868]
cmp edx, dword [ebp + ecx*4 - 0x430]
jne 0x1013f399
mov byte [ebp - 0x861], 1
jmp 0x1013f39b
jmp 0x1013f35f
movzx eax, byte [ebp - 0x861]
test eax, eax
jne 0x1013f45a
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x868]
mov dword [ebp + ecx*4 - 0x430], edx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1013f415
mov ecx, dword [0x101eb6a8]
imul ecx, ecx, 0x1f
add ecx, 0x101e97a8
mov dword [ebp - 0x874], ecx
mov edx, dword [0x101eb6a8]
add edx, 1
mov dword [0x101eb6a8], edx
movzx eax, word [ebp - 0x83c]
push eax
lea ecx, [ebp - 0x24]
push ecx
push str._s___u_
mov edx, dword [ebp - 0x874]
push edx
call fcn.1014ea28
add esp, 0x10
movzx eax, word [ebp - 0x83c]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
jmp 0x1013f45a
mov ecx, dword [0x101eb6a8]
imul ecx, ecx, 0x1f
add ecx, 0x101e97a8
mov dword [ebp - 0x878], ecx
mov edx, dword [0x101eb6a8]
add edx, 1
mov dword [0x101eb6a8], edx
lea eax, [ebp - 0x24]
push eax
push 0x101a7368
mov ecx, dword [ebp - 0x878]
push ecx
call fcn.1014ea28
add esp, 0xc
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
jmp 0x1013f2fe
jmp 0x1013f2c4
mov eax, dword [ebp - 0x838]
push eax
call fcn.1013eee0
add esp, 4
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1013eee0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x101eb6b4], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014c68a
mov esp, ebp
pop ebp
ret