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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1020b800
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x105520d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x48]
push edx
push esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], 0
call fcn.100e3e80
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
add esp, 8
push ebx
push edi
push eax
push esi
call fcn.100e3d30
add esp, 0x10
push ebx
push edi
push esi
call sym.QMSL_MSVC10R.dll_QLIB_FEMTO_FTM_SET_TX_LO_FREQ
movzx eax, al
add esp, 0xc
test eax, eax
jne 0x100e6241
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], str.QLIB_function_returned_an_error:_QLIB_FEMTO_FTM_SET_TX_LO_FREQ_h__txpath__channel_
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x104305c4
lea edx, [ebp - 0x54]
push edx
mov dword [ebp - 0x54], vtable.FemtoException.0
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [ebp + 0x1c]
push eax
push edi
push esi
call sym.QMSL_MSVC10R.dll_QLIB_FEMTO_FTM_SET_TX_GAIN_STATE
movzx eax, al
add esp, 0xc
test eax, eax
jne 0x100e627f
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x40], str.QLIB_function_returned_an_error:_QLIB_FEMTO_FTM_SET_TX_GAIN_STATE_h__txpath__gainIndex_
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x104305c4
lea edx, [ebp - 0x6c]
push edx
mov dword [ebp - 0x6c], vtable.FemtoException.0
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x14]
push eax
push ecx
push esi
call sym.QMSL_MSVC10R.dll_QLIB_FEMTO_FTM_RFCAL_SET_DIGITAL_GAIN
movzx eax, al
add esp, 0xc
test eax, eax
jne 0x100e62c9
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x40], str.QLIB_function_returned_an_error:_QLIB_FEMTO_FTM_RFCAL_SET_DIGITAL_GAIN_h__dfeChain__digitalGainValue_
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x104305c4
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 0x84], vtable.FemtoException.0
call sub.MSVCR100.dll__CxxThrowException
mov ecx, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x38]
push ecx
push edx
push eax
push esi
call sym.QMSL_MSVC10R.dll_QLIB_FEMTO_FTM_WRITE_GPIO
movzx eax, al
add esp, 0x10
test eax, eax
jne 0x100e630e
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x40], str.QLIB_function_returned_an_error:_QLIB_FEMTO_FTM_WRITE_GPIO_h__enablePA_gpioCtlReg__enablePA_gpioMask__enablePA_gpioValue_
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x104305c4
lea edx, [ebp - 0x60]
push edx
mov dword [ebp - 0x60], vtable.FemtoException.0
call sub.MSVCR100.dll__CxxThrowException
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
call edi
mov ecx, dword [ebp + 0x30]
imul ecx, ecx, 0x3e8
sub eax, ebx
cmp eax, ecx
jge 0x100e63be
mov eax, dword [ebp + 0x34]
lea edx, [ebp - 0x44]
push edx
push eax
push esi
call sym.QMSL_MSVC10R.dll_QLIB_FEMTO_FTM_GET_THERM_ADC
movzx eax, al
add esp, 0xc
test eax, eax
jne 0x100e636e
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x40], str.QLIB_function_returned_an_error:_QLIB_FEMTO_FTM_GET_THERM_ADC_h__thermistorId__adcTherm_
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x104305c4
lea edx, [ebp - 0x78]
push edx
mov dword [ebp - 0x78], vtable.FemtoException.0
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [ebp + 0x10]
fld qword [ebp + 0x28]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x1c]
sub esp, 8
fstp qword [esp]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
call dword [ebp - 0x40]
fstp qword [ebp - 0x24]
mov ecx, dword [ebp - 0x44]
add esp, 8
mov dword [ebp - 0x1c], ecx
call edi
lea edx, [ebp - 0x3c]
sub eax, ebx
push edx
mov dword [ebp - 0x3c], eax
call dword [ebp - 0x48]
mov eax, dword [ebp + 0x24]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100e6318
mov al, 1
jmp 0x100e63e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10203cc8
mov esp, ebp
pop ebp
ret