Function at 0x43adf0
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x474108
mov eax, dword fs:[0]
push eax
sub esp, 0x500
mov eax, dword [0x4afd10]
xor eax, esp
mov dword [esp + 0x4fc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4afd10]
xor eax, esp
push eax
lea eax, [esp + 0x514]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x34], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], vtable.IPCIBus.0
mov dword [esi], vtable.CPCIBusWin32Impl.1.0
mov dword [esi + 8], vtable.CPCIBusWin32Impl.0
mov dword [esp + 0x51c], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea edi, [esi + 0x14]
mov ebp, 0xf
mov dword [edi + 0x18], ebp
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
push 0x104
lea eax, [esp + 0x410]
push eax
push ebx
mov byte [esp + 0x528], 3
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
lea ecx, [esp + 0x310]
push ecx
lea edx, [esp + 0x10c]
push edx
lea eax, [esp + 0x41c]
push eax
call fcn.00453e43
lea eax, [esp + 0x114]
add esp, 0x14
mov dword [esp + 0xfc], ebp
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x43aec5
sub eax, edx
push eax
lea ecx, [esp + 0x104]
push ecx
lea ecx, [esp + 0xec]
call fcn.004017a0
lea eax, [esp + 0x308]
mov byte [esp + 0x51c], 4
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x43aef7
sub eax, edx
push eax
lea edx, [esp + 0x30c]
push edx
lea ecx, [esp + 0xec]
call fcn.0040ed30
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
cmp ebp, ebx
je 0x43af4a
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebp
test eax, eax
je 0x43af59
cmp dword [esp + 0x14], ebx
je 0x43af59
push 0xc
push str.nvflsh64.sys
jmp 0x43af60
push 0xc
push str.nvflsh32.sys
lea ecx, [esp + 0xec]
call fcn.0040ed30
push 0x104
lea ecx, [esp + 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x204]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x43af90
sub eax, edx
push eax
lea edx, [esp + 0x208]
push edx
mov ecx, edi
call fcn.004017a0
push 9
push str.drivers_
mov ecx, edi
call fcn.0040ed30
mov ecx, dword [str.nvflash.sys]
mov eax, ecx
lea ebp, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x43afc4
sub eax, ebp
push eax
push ecx
mov ecx, edi
call fcn.0040ed30
push str.Wow64EnableWow64FsRedirection
push str.kernel32
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x43affe
push ebx
call eax
mov dword [esp + 0x14], eax
cmp dword [edi + 0x18], 0x10
jb 0x43b009
mov eax, dword [edi + 4]
jmp 0x43b00c
lea eax, [edi + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call ebp
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
je 0x43b039
test al, 1
je 0x43b039
cmp dword [edi + 0x18], 0x10
jb 0x43b02f
mov ecx, dword [edi + 4]
jmp 0x43b032
lea ecx, [edi + 4]
and eax, 0xfffffffe
push eax
push ecx
call ebx
mov ecx, 0x10
cmp dword [edi + 0x18], ecx
jb 0x43b048
mov eax, dword [edi + 4]
jmp 0x43b04b
lea eax, [edi + 4]
cmp dword [esp + 0xfc], ecx
mov ecx, dword [esp + 0xe8]
jae 0x43b062
lea ecx, [esp + 0xe8]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x43b120
push 1
push 2
lea ecx, [esp + 0x6c]
call fcn.00416050
lea eax, [esp + 0x64]
push str.Unable_to_setup_NVFLASH_driver__0x
mov bl, 5
push eax
mov byte [esp + 0x524], bl
call fcn.00407c40
add esp, 8
push 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0040b5b0
add esp, 0xc
push 0x483280
push eax
lea edx, [esp + 0x6c]
push edx
mov byte [esp + 0x528], 6
call fcn.00407e50
add esp, 8
push eax
call fcn.00407c40
add esp, 8
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x51c], bl
jb 0x43b0f1
mov eax, dword [esp + 0x1c]
push eax
call fcn.004519dd
add esp, 4
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x68]
call fcn.00415dd0
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x520], 7
call fcn.004074a0
push 0x493208
lea edx, [esp + 0x40]
push edx
call fcn.00451e99
cmp dword [edi + 0x18], 0x10
jb 0x43b12b
mov eax, dword [edi + 4]
jmp 0x43b12e
lea eax, [edi + 4]
push eax
call ebp
cmp eax, 0xffffffff
je 0x43b14f
test al, 1
je 0x43b14f
cmp dword [edi + 0x18], 0x10
jb 0x43b145
mov ecx, dword [edi + 4]
jmp 0x43b148
lea ecx, [edi + 4]
and eax, 0xfffffffe
push eax
push ecx
call ebx
cmp dword [esp + 0x14], 0
je 0x43b175
push str.Wow64EnableWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43b175
push 1
call eax
call fcn.0044d1d0
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x38], ebp
je 0x43b18d
mov eax, dword [ebp]
mov edx, dword [eax]
mov ecx, ebp
call edx
mov ecx, dword [str.NVFLASH]
mov eax, ecx
mov byte [esp + 0x51c], 8
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
lea edx, [eax + 1]
mov bl, byte [eax]
add eax, 1
test bl, bl
jne 0x43b1b5
sub eax, edx
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.004017a0
mov eax, dword [ebp]
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
mov byte [esp + 0x524], 9
call eax
mov ebx, eax
mov ecx, dword [esi + 0x10]
test ecx, ecx
mov byte [esp + 0x51c], 0xa
je 0x43b206
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esi + 0x10], 0
mov ecx, dword [ebx]
test ecx, ecx
je 0x43b212
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
mov ecx, dword [ebx]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov byte [esp + 0x51c], 9
je 0x43b22e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ebx, 0x10
cmp dword [esp + 0x30], ebx
mov byte [esp + 0x51c], 8
jb 0x43b24e
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004519dd
add esp, 4
cmp dword [esi + 0x10], 0
jne 0x43b312
mov ecx, dword [str.NVFLASH]
mov eax, ecx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
lea edx, [eax + 1]
mov bl, byte [eax]
add eax, 1
test bl, bl
jne 0x43b278
sub eax, edx
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.004017a0
mov edx, dword [ebp]
mov edx, dword [edx + 8]
push edi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov bl, 0xb
mov ecx, ebp
mov byte [esp + 0x528], bl
call edx
mov edi, eax
mov ecx, dword [esi + 0x10]
test ecx, ecx
mov byte [esp + 0x51c], 0xc
je 0x43b2cb
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [esi + 0x10], 0
mov ecx, dword [edi]
test ecx, ecx
je 0x43b2d7
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov eax, dword [edi]
mov dword [esi + 0x10], eax
mov byte [esp + 0x51c], bl
je 0x43b2f2
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ebx, 0x10
cmp dword [esp + 0x30], ebx
mov byte [esp + 0x51c], 8
jb 0x43b312
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004519dd
add esp, 4
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
call fcn.0043ad80
mov ecx, dword [esi + 0xc]
test ecx, ecx
mov edi, eax
je 0x43b338
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esi + 0xc], 0
test edi, edi
je 0x43b344
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
mov dword [esi + 0xc], edi
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
mov byte [esp + 0x51c], 4
call eax
cmp dword [esp + 0xfc], ebx
jb 0x43b372
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.004519dd
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x514]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4fc]
xor ecx, esp
call fcn.004522aa
add esp, 0x50c
ret