Function at 0x43d6b0
Capabilities:
Check for time delay via queryperformancecounter
Check if file exists
Delete file
Get file attributes
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe54
mov eax, dword [0x519008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
or eax, 0xffffffff
mov esi, ecx
push 0x51d9e4
mov dword [ebp - 0x9a0], eax
push str._s_current_da3_vmcDataFile.timestamp
mov word [ebp - 0x99c], ax
lea eax, [ebp - 0x398]
push 0x200
push eax
mov byte [ebp - 0x99f], 0xfe
mov byte [ebp - 0x99d], 0xfc
call fcn.004014e0
lea eax, [ebp - 0x398]
push 0x504ff0
push eax
call fcn.0040c671
mov edi, eax
add esp, 0x18
test edi, edi
je 0x43d735
push edi
push 1
lea eax, [ebp - 0x9a0]
push 6
push eax
call fcn.0040d881
push edi
call fcn.0040d0b9
add esp, 0x14
push 0x51d9e4
push str._s_current_da3_vmcDataFile.da3
lea eax, [ebp - 0x118]
push 0x100
push eax
call fcn.004014e0
add esp, 0x10
lea eax, [ebp - 0x598]
push 0x200
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x118]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x43d7a4
cmp word [ebp + eax*2 - 0x598], 0
je 0x43d78e
xor ecx, ecx
mov word [ebp + eax*2 - 0x598], cx
lea eax, [ebp - 0x598]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43d7a4
test al, 0x10
je 0x43d7c2
or eax, 0xffffffff
mov dword [ebp - 0x9a0], eax
mov word [ebp - 0x99c], ax
mov byte [ebp - 0x99f], 0xfe
mov byte [ebp - 0x99d], 0xfc
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x9a8]
push eax
call edi
push dword [0x51dbec]
mov ecx, dword [ebp - 0x9a8]
sub ecx, dword [0x51dbf0]
push dword [0x51dbe8]
mov eax, dword [ebp - 0x9a4]
sbb eax, dword [0x51dbf4]
push eax
push ecx
call fcn.004fce10
push 1
sub esp, 8
mov dword [ebp - 0x9a8], eax
mov ecx, esi
mov dword [ebp - 0x9a4], edx
call fcn.00443620
or eax, 0xffffffff
mov bl, 5
mov dword [ebp - 0x9b8], eax
mov word [ebp - 0x9b4], ax
mov byte [ebp - 0x9b7], 0xfe
mov byte [ebp - 0x9b5], 0xfc
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x9a4]
push 0
push 0x64
push dword [esi + 4]
lea eax, [esi + 0xe4]
mov dword [ebp - 0x14], 0x7b045423
push edx
push eax
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x9a4], 0x800
push eax
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test al, al
jne 0x43d8c8
add bl, 0xff
je 0x43d977
lea eax, [ebp - 0x9b0]
push eax
call edi
push dword [0x51dbec]
mov ecx, dword [ebp - 0x9b0]
sub ecx, dword [0x51dbf0]
push dword [0x51dbe8]
mov eax, dword [ebp - 0x9ac]
sbb eax, dword [0x51dbf4]
push eax
push ecx
call fcn.004fce10
push 0x64
sub esp, 8
mov dword [ebp - 0x9b0], eax
mov ecx, esi
mov dword [ebp - 0x9ac], edx
call fcn.00443620
jmp 0x43d834
mov eax, dword [esi + 0xe7]
lea ecx, [ebp - 0x9a0]
mov dword [ebp - 0x9b8], eax
lea edx, [ebp - 0x9b8]
mov ax, word [esi + 0xeb]
mov word [ebp - 0x9b4], ax
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x43d902
movzx eax, word [ecx + 4]
cmp ax, word [edx + 4]
je 0x43dbd9
lea eax, [ebp - 0x9b0]
push eax
call edi
push dword [0x51dbec]
mov ecx, dword [ebp - 0x9b0]
sub ecx, dword [0x51dbf0]
push dword [0x51dbe8]
mov eax, dword [ebp - 0x9ac]
sbb eax, dword [0x51dbf4]
push eax
push ecx
call fcn.004fce10
push 1
sub esp, 8
mov dword [ebp - 0x9b0], eax
mov ecx, esi
mov dword [ebp - 0x9ac], edx
call fcn.00443620
mov bl, 2
lea eax, [ebp - 0x9a4]
mov dword [ebp - 0x9a4], 0
push eax
push 0
push 0
mov ecx, esi
dec bl
call fcn.0043eac0
cmp eax, 1
je 0x43d98f
test bl, bl
jne 0x43d950
mov ecx, esi
call fcn.0043d570
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403d8c
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp - 0x9a4]
push eax
push 0x51d9e4
push str._s_temp_vmcDataFile_d.da3
lea eax, [ebp - 0x118]
push 0x100
push eax
call fcn.004014e0
add esp, 0x14
lea eax, [ebp - 0x298]
push 0x51d9e4
push str._s_current_da3_vmcDataFile.da3
push 0x100
push eax
call fcn.004014e0
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x998]
add esp, 0x10
push 0x200
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x298]
push eax
push 0
push 0xfde9
call edi
test eax, eax
je 0x43da1d
cmp word [ebp + eax*2 - 0x998], 0
je 0x43da10
xor ecx, ecx
mov word [ebp + eax*2 - 0x998], cx
lea eax, [ebp - 0x998]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x298]
lea ecx, [ebp - 0x118]
call fcn.0042b800
lea ecx, [ebp - 0x9b8]
call fcn.00438fc0
push str.download_from_cpu.da3
lea eax, [ebp - 0x198]
push 0x80
push eax
call fcn.004014e0
add esp, 0xc
lea eax, [ebp - 0x298]
push 0x51d9e4
push str._s_last_installed_da3
push 0x100
push eax
call fcn.004014e0
push str..da3
lea edx, [ebp - 0x298]
mov dword [ebp - 0xe50], 0xffffffff
lea ecx, [ebp - 0xe50]
call fcn.0042a710
add esp, 0x14
test al, al
je 0x43dae8
mov eax, dword [ebp - 0xe4c]
shr eax, 4
test al, 1
je 0x43dab2
lea ecx, [ebp - 0xe50]
call fcn.0042a680
test al, al
jne 0x43da94
jmp 0x43dad2
lea eax, [ebp - 0xbbc]
push eax
push 0x504fc8
lea eax, [ebp - 0x198]
push 0x80
push eax
call fcn.004014e0
add esp, 0x10
push dword [ebp - 0xe50]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0xe50], 0xffffffff
xor dl, dl
lea ecx, [ebp - 0x298]
call fcn.0042b8f0
lea eax, [ebp - 0x198]
push eax
push 0x51d9e4
push str._s_last_installed_da3__s
lea eax, [ebp - 0x298]
push 0x100
push eax
call fcn.004014e0
add esp, 0x14
lea edx, [ebp - 0x298]
lea ecx, [ebp - 0x118]
call fcn.0042b800
lea ecx, [ebp - 0x9b0]
call fcn.004015b0
push 0x51d9e4
push str._s_last_installed_da3_dateUM.bin
lea eax, [ebp - 0x118]
push 0x100
push eax
call fcn.004014e0
add esp, 0x10
lea eax, [ebp - 0x998]
push 0x200
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x118]
push eax
push 0
push 0xfde9
call edi
test eax, eax
je 0x43dba3
cmp word [ebp + eax*2 - 0x998], 0
je 0x43db8b
xor ecx, ecx
mov word [ebp + eax*2 - 0x998], cx
lea eax, [ebp - 0x998]
push 0x504ef8
push eax
call fcn.0040c65a
add esp, 8
mov edi, eax
jmp 0x43dba5
xor edi, edi
mov ecx, dword [ebp - 0x9b0]
xor eax, eax
or eax, dword [ebp - 0x9ac]
push edi
push 1
mov dword [ebp - 0x9a8], eax
lea eax, [ebp - 0x9a8]
push 8
push eax
mov dword [ebp - 0x9a4], ecx
call fcn.0040d634
push edi
call fcn.0040d0b9
add esp, 0x14
mov ecx, esi
call fcn.0043b470
mov eax, dword [esi + 4]
push str.CPUBridgeServer::priv_enterState_normal___n
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov ecx, dword [ebp - 4]
add esp, 8
mov dword [esi + 0xe0], 1
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00403d8c
mov esp, ebp
pop ebp
ret