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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov byte [ebp - 1], 0
xor edi, edi
mov eax, esi
call fcn.00424700
mov edx, dword [0x45b3e0]
mov byte [edx], al
mov eax, dword [0x45b3e0]
movzx eax, byte [eax]
imul eax, eax, 0x422
lea ebx, [eax*8 + 0x4dd3b4]
cmp byte [ebp + 0x20], 0
jne 0x439f17
mov eax, dword [ebx + 0x14]
push eax
call fcn.00427fc0
test al, al
je 0x439ece
fld qword [ebx + 0x30]
fcomp qword [0x45b088]
fnstsw ax
sahf
jae 0x439eef
cmp dword [ebx + 0x14], 0x384
je 0x439eef
cmp dword [ebx + 0x10], 2
jne 0x439ee9
push 0x1e
push esi
call sym.FRDrive.dll_GetClockSupports
test al, al
je 0x439eef
cmp dword [ebx + 0x10], 2
jle 0x439f17
push 1
mov eax, dword [ebp + 0x1c]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push esi
call sym.FRDrive.dll_WriteAllICCard
mov byte [ebp - 1], al
jmp 0x43a065
call sub.kernel32.dll_GetTickCount
mov ebx, eax
inc edi
lea eax, [ebp - 0x69]
xor ecx, ecx
mov edx, 0x32
call fcn.00402f40
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x37]
push eax
lea eax, [ebp - 0x9b]
push eax
lea eax, [ebp - 0x69]
push eax
push esi
call sym.FRDrive.dll_ReadICCardEx
or al, byte [ebp + 0x20]
je 0x43a04b
cmp byte [ebp + 0x20], 0
je 0x439fca
cmp dword [ebp - 0x10], 0
jne 0x439fca
push 0
mov eax, dword [ebp + 0x1c]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x37]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push esi
call sym.FRDrive.dll_WriteICCardEx
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x43a065
jmp 0x43a04b
cmp byte [ebp + 0x20], 0
jne 0x43a028
cmp dword [ebp - 0x10], 0
je 0x43a028
lea eax, [ebp - 0x69]
mov edx, dword [ebp + 0xc]
call fcn.0040861c
test eax, eax
jne 0x43a028
push 1
mov eax, dword [ebp + 0x1c]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x37]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push esi
call sym.FRDrive.dll_WriteICCardEx
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x43a065
jmp 0x43a04b
push 1
push esi
call sym.FRDrive.dll_GetClockVersionOrd
cmp eax, 2
jne 0x43a03f
push 3
push esi
call sym.FRDrive.dll_SetClockState
jmp 0x43a04b
push 0x64
push 0x9c4
call sub.kernel32.dll_Beep
cmp edi, 3
jg 0x43a065
call sub.kernel32.dll_GetTickCount
sub eax, ebx
mov edx, dword [0x45b430]
cmp eax, dword [edx]
jbe 0x439f1e
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c