Function at 0x1002dd40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x1008e46c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x60], 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x10]
test ecx, ecx
jne 0x1002e3e7
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x11]
cmp ecx, 1
jne 0x1002ddc7
mov eax, dword [ebp - 8]
cmp dword [eax + 0x340], 0
je 0x1002dd9e
push 0
push 0
push 0xff
mov ecx, dword [ebp - 8]
call fcn.1002f010
test eax, eax
je 0x1002dd9e
jmp 0x1002dd87
mov eax, dword [ebp - 8]
cmp dword [eax + 0x33c], 0
je 0x1002ddc7
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x33c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [eax + 0x33c], 0
mov dword [ebp - 0x60], 4
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x5c]
push ecx
push 1
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
push eax
call sym.ADVMOT.dll_Acm_GetProperty
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1002ddf5
mov eax, dword [ebp - 0xc]
jmp 0x1002e3e9
mov ax, word [ebp - 0x5c]
mov word [ebp - 0x14], ax
mov dword [ebp - 0x60], 0x40
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x58]
push ecx
push 0xd9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
push eax
call sym.ADVMOT.dll_Acm_GetProperty
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1002de53
xor eax, eax
mov word [ebp - 0x10], ax
movzx eax, word [ebp - 0x10]
cmp dword [ebp + eax*4 - 0x58], 0
je 0x1002de53
movzx eax, word [ebp - 0x5c]
movzx ecx, word [ebp - 0x14]
add ecx, eax
mov word [ebp - 0x14], cx
mov ax, word [ebp - 0x10]
add ax, 1
mov word [ebp - 0x10], ax
jmp 0x1002de2c
mov ecx, dword [ebp - 8]
add ecx, 0x3c
call fcn.1002a7b0
mov ecx, dword [ebp - 8]
add ecx, 0x111c
call fcn.1003c2e0
mov ecx, dword [ebp - 8]
add ecx, 0x112c
call fcn.1003c2e0
mov ecx, dword [ebp - 8]
add ecx, 0x10fc
call fcn.1003c140
mov ecx, dword [ebp - 8]
add ecx, 0x110c
call fcn.1003c140
mov ecx, dword [ebp - 8]
add ecx, 0x1198
call fcn.1003c140
mov ecx, dword [ebp - 8]
add ecx, 0x11a8
call fcn.1003c140
mov ecx, dword [ebp - 8]
add ecx, 0x11b8
call fcn.1003c140
movzx eax, word [ebp - 0x14]
test eax, eax
jle 0x1002e045
movzx eax, word [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x54], eax
movzx eax, word [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x28], eax
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x18
call fcn.1003bc30
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x3c
call fcn.1003bc30
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x111c
call fcn.1003c1f0
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x112c
call fcn.1003c1f0
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x10fc
call fcn.1003c040
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x110c
call fcn.1003c040
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x1198
call fcn.1003c040
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x11a8
call fcn.1003c040
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x11b8
call fcn.1003c040
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x103c
call fcn.1003c040
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x104c
call fcn.1003c040
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x105c
call fcn.1003c040
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x106c
call fcn.1003c040
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x107c
call fcn.1003c040
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x108c
call fcn.1003c040
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x109c
call fcn.1003c040
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x10ac
call fcn.1003c040
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x10ec
call fcn.1003c040
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x113c
call fcn.1003c040
jmp 0x1002e04f
mov eax, 0x81000125
jmp 0x1002e3e9
xor eax, eax
mov word [ebp - 0x10], ax
jmp 0x1002e063
mov ax, word [ebp - 0x10]
add ax, 1
mov word [ebp - 0x10], ax
movzx eax, word [ebp - 0x10]
movzx ecx, word [ebp - 0x14]
cmp eax, ecx
jge 0x1002e2b7
movzx eax, word [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x18
call fcn.1003b9a0
push eax
movzx ecx, word [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
push eax
call sym.ADVMOT.dll_Acm_AxOpen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1002e0a6
mov eax, dword [ebp - 0xc]
jmp 0x1002e3e9
movzx eax, word [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x18
call fcn.1003b9a0
mov esi, eax
movzx ecx, word [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x3c
call fcn.1003b9a0
mov edx, dword [esi]
mov dword [eax], edx
lea eax, [ebp - 0x68]
push eax
movzx ecx, word [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x3c
call fcn.1003b9a0
mov edx, dword [eax]
push edx
call sym.ADVMOT.dll_Acm_AxGetCmdPosition
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1002e0f9
mov eax, dword [ebp - 0xc]
jmp 0x1002e3e9
movzx eax, word [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x107c
call fcn.1001dd40
fld qword [ebp - 0x68]
fstp qword [eax]
movzx eax, word [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x10fc
call fcn.1001dd40
fld qword [ebp - 0x68]
fstp qword [eax]
lea eax, [ebp - 0x18]
push eax
movzx ecx, word [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x3c
call fcn.1003b9a0
mov edx, dword [eax]
push edx
call sym.ADVMOT.dll_Acm_AxGetState
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1002e156
mov eax, dword [ebp - 0xc]
jmp 0x1002e3e9
movzx eax, word [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x111c
call fcn.1003c2c0
mov cx, word [ebp - 0x18]
mov word [eax], cx
movzx eax, word [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x10fc
call fcn.1001dd40
fldz
fstp qword [eax]
movzx eax, word [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x110c
call fcn.1001dd40
fldz
fstp qword [eax]
movzx eax, word [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x1198
call fcn.1001dd40
fldz
fstp qword [eax]
movzx eax, word [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x11a8
call fcn.1001dd40
fldz
fstp qword [eax]
movzx eax, word [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x11b8
call fcn.1001dd40
fldz
fstp qword [eax]
movzx eax, word [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x103c
call fcn.1001dd40
fldz
fstp qword [eax]
movzx eax, word [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x104c
call fcn.1001dd40
fldz
fstp qword [eax]
movzx eax, word [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x105c
call fcn.1001dd40
fldz
fstp qword [eax]
movzx eax, word [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x106c
call fcn.1001dd40
fldz
fstp qword [eax]
movzx eax, word [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x107c
call fcn.1001dd40
fldz
fstp qword [eax]
movzx eax, word [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x108c
call fcn.1001dd40
fldz
fstp qword [eax]
movzx eax, word [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x109c
call fcn.1001dd40
fldz
fstp qword [eax]
movzx eax, word [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x10ac
call fcn.1001dd40
fldz
fstp qword [eax]
movzx eax, word [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x113c
call fcn.1001dd40
fld1
fstp qword [eax]
jmp 0x1002e057
mov eax, dword [ebp - 8]
mov dword [eax + 0x12d4], 0xe10
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x118
call fcn.10027700
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x340], eax
push 0
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x344], eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x348], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x34c], 0
mov ecx, dword [ebp - 8]
call fcn.1002e5d0
push 0
mov ecx, dword [ebp - 8]
call fcn.1002ee00
push 0
mov ecx, dword [ebp - 8]
call fcn.1002ee30
mov ecx, dword [ebp - 8]
call fcn.1002eff0
mov eax, dword [ebp - 8]
mov dword [eax + 0x338], 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push 0x1003ac80
push 0
push 0
call fcn.100465c2
add esp, 0x18
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x33c], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x33c], 0
jne 0x1002e385
mov eax, 0x81000202
jmp 0x1002e3e9
mov eax, dword [ebp - 8]
mov dword [eax + 0x12d8], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x12dc], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x12e0], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x12e4], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x12e8], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x12c8], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x12cc], 0
mov eax, dword [ebp - 8]
mov byte [eax + 0x10], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100420d4
mov esp, ebp
pop ebp
ret