Function at 0x10001c40
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x38
mov eax, dword [0x10042278]
push ebx
push ebp
push esi
push edi
push 0x2c4
lea ecx, [esp + 0x20]
xor ebx, ebx
push 0x10041f58
push ecx
mov byte [0x1006eaf8], bl
mov dword [esp + 0x28], eax
call fcn.1000e6e2
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 0xc
mov dword [0x1006eafc], edx
mov dword [eax], ebx
push 0x1006ea18
call esi
push 0x1006ea00
call esi
mov ecx, dword [0x10042278]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x18], ecx
mov dword [0x1006ea30], edx
call fcn.10002490
test al, al
jne 0x10001cbc
push ebx
push ebx
push str.InitUDP_Error
call fcn.1001559e
mov eax, dword [0x10042278]
push 1
lea ecx, [esp + 0x18]
push 0x10041f58
push ecx
mov dword [esp + 0x20], eax
call fcn.1000e6e2
add esp, 8
lea eax, [esp + 0x18]
mov edx, esp
mov dword [esp + 0x5c], esp
push eax
push str.RECVCALLIDMODE
push edx
call fcn.10012edd
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push str.SoftwarePhoneAssist
call fcn.10012ccf
push bind
call fcn.10002220
add esp, 0xc
cmp eax, 1
mov dword [0x1006ce90], eax
je 0x10001d22
cmp eax, 2
je 0x10001d22
mov dword [0x1006ce90], ebx
push ecx
mov ecx, esp
mov dword [esp + 0x5c], esp
push str.GETSOFTDTMF
call fcn.10012ccf
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push str.SoftwarePhoneAssist
call fcn.10012ccf
push bind
call fcn.10002220
dec eax
neg eax
sbb eax, eax
add esp, 8
neg eax
inc eax
mov ecx, esp
mov dword [esp + 0x5c], esp
push str.GETINVALIDDTMF
mov dword [0x10041e70], eax
call fcn.10012ccf
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push str.SoftwarePhoneAssist
call fcn.10012ccf
push bind
call fcn.10002220
add esp, 0xc
cmp eax, 1
jne 0x10001e0d
mov dword [0x10041e28], 0x6eae
mov dword [0x10041e2c], ebx
mov dword [0x10041e30], 0x6afb
mov dword [0x10041e34], ebx
mov dword [0x10041e38], 0x66e6
mov dword [0x10041e3c], ebx
mov dword [0x10041e40], 0x6154
mov dword [0x10041e44], ebx
mov dword [0x10041e48], 0x4ed9
mov dword [0x10041e4c], ebx
mov dword [0x10041e50], 0x4495
mov dword [0x10041e54], ebx
mov dword [0x10041e58], 0x384f
mov dword [0x10041e5c], ebx
mov dword [0x10041e60], 0x2b5b
jmp 0x10001e87
mov dword [0x10041e28], 0x6d02
mov dword [0x10041e2c], ebx
mov dword [0x10041e30], 0x68b2
mov dword [0x10041e34], ebx
mov dword [0x10041e38], 0x63fd
mov dword [0x10041e3c], ebx
mov dword [0x10041e40], 0x5ee7
mov dword [0x10041e44], ebx
mov dword [0x10041e48], 0x4a71
mov dword [0x10041e4c], ebx
mov dword [0x10041e50], 0x4091
mov dword [0x10041e54], ebx
mov dword [0x10041e58], 0x3291
mov dword [0x10041e5c], ebx
mov dword [0x10041e60], 0x23ce
push 1
lea ecx, [esp + 0x18]
push 0x10041f58
push ecx
mov dword [0x10041e64], ebx
mov byte [0x1006ca70], bl
mov dword [0x1006cc28], ebx
mov dword [0x1006cd08], ebx
mov dword [0x1006cd0c], ebx
mov dword [0x1006cd18], ebx
mov dword [0x1006cd10], ebx
mov dword [0x1006cd34], ebx
mov byte [0x1006cd30], bl
mov dword [0x1006cd00], ebx
mov dword [0x1006cd04], 3
mov dword [0x1006cd44], 0xffffffff
mov byte [0x1006cd48], bl
mov dword [0x1006e298], ebx
mov byte [0x1006e2a0], bl
mov byte [0x1006e2a1], 1
call fcn.1000e6e2
add esp, 8
lea eax, [esp + 0x18]
mov edx, esp
mov dword [esp + 0x5c], esp
push eax
push str.RECVCALLIDDELAY
push edx
call fcn.10012edd
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push str.SoftwarePhoneAssist
call fcn.10012ccf
push bind
call fcn.10002220
mov dword [0x1006e29c], eax
mov ecx, 0x19
xor eax, eax
mov edi, 0x1006e2bc
mov dword [0x1006e2a8], 2
push ebx
rep stosd dword es:[edi], eax
mov ecx, 0x20
mov edi, 0x1006e878
rep stosd dword es:[edi], eax
mov ecx, 0x19
mov edi, 0x1006e4d0
rep stosd dword es:[edi], eax
mov byte [0x1006e3ec], bl
mov byte [0x1006ccfc], bl
mov byte [0x1006e3e8], bl
mov dword [0x1006cbf8], ebx
mov dword [0x1006cc0c], ebx
mov dword [0x1006e53c], ebx
mov dword [0x1006e538], ebx
call fcn.10002cb0
add esp, 0x10
mov eax, 0x1006ca94
mov dword [eax - 8], ebx
mov dword [eax], 0xffffffff
add eax, 0x20
cmp eax, 0x1006cc14
jl 0x10001fa2
lea ecx, [esp + 0x24]
call fcn.1001362d
mov ecx, dword [0x10042278]
push 0x1006eb14
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x1c]
call fcn.10012d9e
lea edx, [esp + 0x58]
push edx
call fcn.100023d0
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push eax
push 0x10041f90
push ecx
call fcn.1000e6e2
add esp, 0x10
lea ecx, [esp + 0x58]
call fcn.10012c61
mov edx, dword [esp + 0x10]
push ebx
push ebx
push edx
lea ecx, [esp + 0x30]
call fcn.1001373f
test eax, eax
je 0x10002058
xor eax, eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], eax
push 0x14
mov dword [esp + 0x3c], eax
push ecx
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call fcn.1001385c
lea edx, [esp + 0x34]
lea eax, [esp + 0x18]
push edx
push 0x10041f48
push eax
call fcn.1000e6e2
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.1001395a
mov ecx, dword [esp + 0x18]
push 0x1006eb14
push ecx
call fcn.100049f9
add esp, 8
test eax, eax
je 0x10002080
mov edx, dword [esp + 0x18]
push edx
call fcn.10004b85
add esp, 4
mov dword [0x1006eb04], eax
lea eax, [esp + 0x58]
push eax
call fcn.100023d0
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push ecx
push 0x10041f80
push edx
call fcn.1000e6e2
add esp, 0x10
lea ecx, [esp + 0x58]
call fcn.10012c61
mov eax, dword [esp + 0x10]
push ebx
push ebx
push eax
lea ecx, [esp + 0x30]
call fcn.1001373f
test eax, eax
je 0x10002102
xor ecx, ecx
lea edx, [esp + 0x34]
mov dword [esp + 0x34], ecx
push 0x14
mov dword [esp + 0x3c], ecx
push edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x2c]
call fcn.1001385c
lea eax, [esp + 0x34]
push eax
push 0x10041f48
push 0x1006eb00
call fcn.1000e6e2
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.1001395a
mov eax, dword [0x1006eb00]
push 0x1006eb14
push eax
call fcn.100049f9
add esp, 8
test eax, eax
jne 0x10002128
push str.13705315064
mov ecx, 0x1006eb00
call fcn.10012d9e
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0x20]
push ecx
push 4
push ebx
push 0x10001480
push ebx
push ebx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esi, eax
push 0xffffffffffffffff
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea edx, [esp + 0x20]
push edx
push 4
push ebx
push 0x10001470
push ebx
push ebx
call edi
mov esi, eax
push 0xffffffffffffffff
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ecx
mov ecx, esp
mov dword [esp + 0x5c], esp
push str.ContactCount
call fcn.10012ccf
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push str.SoftwarePhoneAssist
call fcn.10012ccf
push bind
call fcn.10002220
mov ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
add esp, 0xc
shr eax, 0x1f
add edx, eax
cmp edx, 0x64
mov dword [0x1006e3fc], edx
jg 0x100021cb
mov dword [0x1006e3fc], 0x64
jmp 0x100021dd
cmp edx, 0x1f4
jle 0x100021dd
mov dword [0x1006e3fc], 0x1f4
lea ecx, [esp + 0x10]
call fcn.10012c61
lea ecx, [esp + 0x24]
call fcn.10013682
lea ecx, [esp + 0x14]
call fcn.10012c61
lea ecx, [esp + 0x18]
call fcn.10012c61
lea ecx, [esp + 0x1c]
call fcn.10012c61
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x38
ret 0x14