Function at 0x404790
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x427910
push 0x40e2d0
mov eax, dword fs:[0]
push eax
sub esp, 0xa34
mov eax, dword [0x42a0d0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
xor eax, eax
mov word [ebp - 0x83c], ax
push 0x206
push ebx
lea ecx, [ebp - 0x83a]
push ecx
call fcn.0040d990
mov byte [ebp - 0x42c], bl
push 0x103
push ebx
lea edx, [ebp - 0x42b]
push edx
call fcn.0040d990
mov byte [ebp - 0x328], bl
push 0x103
push ebx
lea eax, [ebp - 0x327]
push eax
call fcn.0040d990
xor ecx, ecx
mov word [ebp - 0xa44], cx
push 0x206
push ebx
lea edx, [ebp - 0xa42]
push edx
call fcn.0040d990
mov byte [ebp - 0x634], bl
push 0x103
push ebx
lea eax, [ebp - 0x633]
push eax
call fcn.0040d990
mov byte [ebp - 0x530], bl
push 0x103
push ebx
lea ecx, [ebp - 0x52f]
push ecx
call fcn.0040d990
add esp, 0x48
mov byte [ebp - 0x120], bl
push 0x103
push ebx
lea edx, [ebp - 0x11f]
push edx
call fcn.0040d990
mov byte [ebp - 0x224], bl
push 0x103
push ebx
lea eax, [ebp - 0x223]
push eax
call fcn.0040d990
push 0x208
lea ecx, [ebp - 0x83c]
push ecx
call fcn.00401050
add esp, 0x20
test al, al
je 0x404a9c
push 0x424a48
lea edx, [ebp - 0x83c]
push edx
push str._S_S
lea eax, [ebp - 0x42c]
push eax
call fcn.0040d54d
push 0x424a1c
lea ecx, [ebp - 0x83c]
push ecx
push str._S_S
lea edx, [ebp - 0x328]
push edx
call fcn.0040d54d
push str.NvStereo
lea eax, [ebp - 0x83c]
push eax
push str._S_s
lea ecx, [ebp - 0x224]
push ecx
call fcn.0040d54d
lea edx, [ebp - 0x42c]
push edx
call fcn.004010c0
add esp, 0x34
test al, al
je 0x404a9c
lea eax, [ebp - 0x328]
push eax
call fcn.004010c0
add esp, 4
test al, al
je 0x404a9c
push 0x104
push ebx
lea ecx, [ebp - 0x120]
push ecx
call fcn.0040d990
push 0x104
lea edx, [ebp - 0x120]
push edx
call fcn.004035f0
lea eax, [ebp - 0x120]
push eax
call fcn.00404090
add esp, 0x18
test al, al
je 0x404a9c
lea ecx, [ebp - 0x224]
push ecx
call fcn.00404090
add esp, 4
test al, al
je 0x404a9c
push str._nvstapisvr.dll
lea edx, [ebp - 0x224]
push edx
push str._s_S
lea eax, [ebp - 0x634]
push eax
call fcn.0040d54d
push str._nvstapisvr64.dll
lea ecx, [ebp - 0x224]
push ecx
push str._s_S
lea edx, [ebp - 0x530]
push edx
call fcn.0040d54d
add esp, 0x20
lea eax, [ebp - 0x120]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4049d0
sub eax, edx
push eax
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0xa44]
push ecx
call fcn.0040e75b
add esp, 0xc
lea eax, [ebp - 0x120]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404a00
sub eax, edx
push 1
push 0x4243c8
lea edx, [ebp + eax*2 - 0xa44]
push edx
call fcn.0040e75b
add esp, 0xc
lea eax, [ebp - 0x120]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404a30
sub eax, edx
push 8
push str.NvStereo
lea eax, [ebp + eax*2 - 0xa42]
push eax
call fcn.0040e75b
add esp, 0xc
push ebx
lea ecx, [ebp - 0x634]
push ecx
lea edx, [ebp - 0x42c]
push edx
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
call esi
test eax, eax
je 0x404a9c
push ebx
lea eax, [ebp - 0x530]
push eax
lea ecx, [ebp - 0x328]
push ecx
call esi
test eax, eax
je 0x404a9c
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0xa44]
push eax
call fcn.00404510
add esp, 8
test al, al
je 0x404a9c
mov bl, 1
mov dword [ebp - 4], 0xfffffffe
mov al, bl
jmp 0x404ab9
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040d609
mov esp, ebp
pop ebp
ret