Function at 0x409197
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4fc
push ebx
push esi
push edi
push 0x31
lea eax, [ebp - 0xdb]
push 0
push eax
mov byte [ebp - 0xdc], 0
call fcn.00416e30
xor edi, edi
inc edi
add esp, 0xc
lea ebx, [ebp - 0x1e8]
mov dword [ebp - 0x10], 0x32
mov dword [ebp - 0x18], edi
call fcn.00404705
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x42f274
mov eax, ebx
push eax
call esi
push str.gvtl.dll
mov eax, ebx
push eax
call esi
lea eax, [ebp - 0xc]
push eax
push str.SoftwareAppDataLowgvtl
push 0x80000001
call dword [0x4394e8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x18]
push eax
xor ebx, ebx
push ebx
push 0x42f794
push dword [ebp - 0xc]
call dword [0x439504]
test eax, eax
jge 0x409267
push 0x30
pop eax
push eax
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x5e]
push ebx
push eax
call fcn.00416e30
add esp, 0xc
push 0x32
lea eax, [ebp - 0x60]
push eax
call fcn.00409fdc
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x60]
push eax
push edi
push ebx
push 0x42f798
push dword [ebp - 0xc]
call dword [0x4394f8]
push dword [ebp - 0xc]
call dword [0x4394e4]
call fcn.004019f7
call fcn.004019f7
lea eax, [ebp - 0x1e8]
push eax
call fcn.0040910c
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov edi, 0x104
test al, al
jne 0x4092d4
lea eax, [ebp - 0x1e8]
push eax
push str._s.tmp
lea eax, [ebp - 0x2f0]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x2f0]
push eax
call fcn.0040910c
test al, al
je 0x4092d4
push 5
lea eax, [ebp - 0x1e8]
push eax
lea eax, [ebp - 0x2f0]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0x10
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.00416e30
add esp, 0xc
push 0x44
lea eax, [ebp - 0xa8]
push ebx
push eax
call fcn.00416e30
add esp, 0xc
xor eax, eax
push 0x103
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x4f7]
push ebx
push eax
mov dword [ebp - 0xa8], 0x44
mov dword [ebp - 0x7c], 1
mov byte [ebp - 0x4f8], bl
call fcn.00416e30
add esp, 0xc
lea eax, [ebp - 0x1e8]
push eax
push str.cmd.exe__c_regsvr32.exe__s___s_
lea eax, [ebp - 0x4f8]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xa8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4f8]
push eax
push ebx
call dword [0x439500]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40945a
push 0x2710
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.beaC7DC8_E106_4C6A_931E_5A42E7362883
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects_s
lea eax, [ebp - 0x3f0]
push 0xff
push eax
call esi
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x3f0]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x409457
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.beaC7DC8_E106_4C6A_931E_5A42E7362883
push str.CLSID_sInprocServer32
lea eax, [ebp - 0x3f0]
push 0xff
push eax
call esi
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x3f0]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x409457
push 0x103
xor esi, esi
lea eax, [ebp - 0x2ef]
push ebx
inc esi
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2f0], bl
call fcn.00416e30
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push dword [ebp - 8]
call dword [0x439504]
test eax, eax
jne 0x40944c
lea eax, [ebp - 0x1e8]
push eax
lea eax, [ebp - 0x2f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40944c
mov dword [ebp - 4], esi
push dword [ebp - 8]
call dword [0x4394e4]
jmp 0x40945a
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0x20
pop ebx
leave
ret