Function at 0x10002440
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x10077180]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
push edi
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
xor eax, eax
mov dword [esp + 0x40], 0
push eax
push 0x1000
push dword [esp + 0x1c]
xorps xmm0, xmm0
mov dword [esp + 0x50], 7
movaps xmmword [esp + 0x3c], xmm0
lea ecx, [esp + 0x3c]
push 0x1000
mov word [esp + 0x40], ax
call fcn.100033d0
cmp dword [esp + 0x44], 7
lea eax, [esp + 0x30]
cmova eax, dword [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
sub esp, 8
mov dword [esp + 0x28], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x20]
movq qword [esp + 0x20], xmm0
call fcn.10002940
mov edx, dword [esp + 0x1c]
xor esi, esi
mov edi, dword [esp + 0x18]
mov ecx, edx
sub ecx, edi
mov dword [esp + 0x14], 0
sar ecx, 4
test ecx, ecx
je 0x10002558
mov dword [esp + 0x10], esi
nop
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movd xmm1, ecx
addsd xmm0, qword [eax*8 + 0x10071c60]
cvtdq2pd xmm1, xmm1
shr ecx, 0x1f
mulsd xmm0, qword [0x10071c38]
addsd xmm1, qword [ecx*8 + 0x10071c60]
divsd xmm0, xmm1
call fcn.1005a0d0
mov eax, dword [esp + 0x10]
inc esi
movsd qword [eax + edi], xmm0
xorps xmm0, xmm0
movsd qword [eax + edi + 8], xmm0
add eax, 0x10
mov edx, dword [esp + 0x1c]
mov ecx, edx
mov edi, dword [esp + 0x18]
sub ecx, edi
sar ecx, 4
mov dword [esp + 0x10], eax
cmp esi, ecx
jb 0x100024f0
lea eax, [esp + 0x14]
sub edx, edi
push eax
sar edx, 4
lea ecx, [esp + 0x1c]
push 0
call fcn.100038b0
add esp, 8
test al, al
jne 0x10002597
mov edx, str.failed:
mov ecx, 0x100783f8
call fcn.10002ec0
mov edx, dword [esp + 0x14]
mov ecx, eax
call fcn.10002ec0
push eax
call fcn.10003160
add esp, 4
mov edx, dword [esp + 0x18]
test edx, edx
je 0x100025d0
mov ecx, dword [esp + 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x100025c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002888
push ecx
push edx
call fcn.1003234f
add esp, 8
push 0x4023
call fcn.1003231a
add esp, 4
test eax, eax
je 0x10002888
lea edx, [eax + 0x23]
xorps xmm0, xmm0
and edx, 0xffffffe0
mov dword [edx - 4], eax
lea eax, [edx + 0x4000]
mov dword [esp + 0x20], eax
mov eax, 0x400
mov dword [esp + 0x18], edx
movups xmmword [edx], xmm0
add edx, 0x10
sub eax, 1
jne 0x10002604
mov esi, dword [esp + 0x18]
mov ecx, edx
sub ecx, esi
mov dword [esp + 0x1c], edx
sar ecx, 4
xor edi, edi
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x10002698
mov dword [esp + 0x14], edi
nop dword [eax]
movd xmm0, edi
mov eax, edi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movd xmm1, ecx
addsd xmm0, qword [eax*8 + 0x10071c60]
cvtdq2pd xmm1, xmm1
shr ecx, 0x1f
mulsd xmm0, qword [0x10071c38]
addsd xmm1, qword [ecx*8 + 0x10071c60]
divsd xmm0, xmm1
call fcn.1005a0d0
mov eax, dword [esp + 0x14]
inc edi
movsd qword [eax + esi], xmm0
xorps xmm0, xmm0
movsd qword [eax + esi + 8], xmm0
add eax, 0x10
mov edx, dword [esp + 0x1c]
mov ecx, edx
mov esi, dword [esp + 0x18]
sub ecx, esi
sar ecx, 4
mov dword [esp + 0x14], eax
cmp edi, ecx
jb 0x10002630
lea eax, [esp + 0x10]
sub edx, esi
push eax
sar edx, 4
lea ecx, [esp + 0x1c]
push 0
call fcn.100038b0
add esp, 8
test al, al
jne 0x10002771
mov edx, str.failed:
mov ecx, 0x100783f8
call fcn.10002ec0
mov edx, dword [esp + 0x10]
mov ecx, eax
call fcn.10002ec0
push eax
call fcn.10003160
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x14]
sub edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
add esp, 4
sar edx, 4
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
push eax
push 1
call fcn.100038b0
add esp, 8
test al, al
jne 0x10002738
mov edx, str.failed:
mov ecx, 0x100783f8
call fcn.10002ec0
mov edx, dword [esp + 0x10]
mov ecx, eax
call fcn.10002ec0
push eax
call fcn.10003160
add esp, 4
mov edx, dword [esp + 0x24]
test edx, edx
je 0x10002771
mov ecx, dword [esp + 0x2c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x10002767
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002888
push ecx
push edx
call fcn.1003234f
add esp, 8
mov edx, dword [esp + 0x18]
test edx, edx
je 0x100027aa
mov ecx, dword [esp + 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x100027a0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002888
push ecx
push edx
call fcn.1003234f
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x6a4
mov dword [esp + 0x14], esi
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.10002390
test al, al
je 0x100027f0
mov esi, 0x320
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.10002390
push 0x1e
call edi
sub esi, 1
jne 0x100027d6
mov esi, dword [esp + 0x14]
push 0x32
call edi
sub esi, 1
mov dword [esp + 0x14], esi
jne 0x100027c0
push 0
push 0
push 0
push 4
push 1
call sym.KZCommon.v3.dll_caerDeviceOpen
add esp, 0x14
mov dword [esp + 0x14], eax
push 1
push 1
push 0xfffffffffffffffe
push eax
call sym.KZCommon.v3.dll_caerDeviceConfigSet
add esp, 0x10
push dword [esp + 0x14]
call sym.KZCommon.v3.dll_caerDeviceDataGet
add esp, 4
test eax, eax
jne 0x10002822
lea eax, [esp + 0x14]
push eax
call sym.KZCommon.v3.dll_caerDeviceClose
mov ecx, dword [esp + 0x48]
add esp, 4
cmp ecx, 7
jbe 0x10002877
mov edx, dword [esp + 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000286d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000288d
push ecx
push edx
call fcn.1003234f
add esp, 8
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor ecx, esp
call fcn.10032307
mov esp, ebp
pop ebp
ret
call fcn.100376ea
call fcn.100376ea
int3