Function at 0x4274dc
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa54
mov eax, dword [0x488b6c]
push ebx
push esi
push edi
mov dword [ebp - 0x250], eax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x24c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x250]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ecx
lea eax, [ebp - 0x250]
mov ecx, esp
push eax
call fcn.0040811c
lea eax, [ebp - 0x24]
push eax
call fcn.0042722a
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00401765
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_CharLowerW]
lea eax, [ebp - 0x250]
lea ecx, [ebp - 0x3c]
push eax
call fcn.0040811c
lea eax, [ebp - 0x250]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040811c
push str._autoupdate
lea ecx, [ebp - 0x28]
call fcn.004013c8
mov eax, dword [eax]
push ebx
push eax
lea ecx, [ebp - 0x24]
call fcn.0040179a
test eax, eax
lea ecx, [ebp - 0x28]
setge byte [ebp - 0x19]
call fcn.0040139c
cmp byte [ebp - 0x19], bl
je 0x42790b
mov eax, dword [0x492fc8]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [eax - 0xc], ebx
jl 0x4275ad
mov dword [ebp - 0x30], eax
add eax, 0xfffffff4
push eax
call esi
jmp 0x4275bf
mov ecx, dword [0x47e520]
push eax
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x30]
call fcn.0040833f
push 0x40654a
push 0x100
lea eax, [ebp - 0xa50]
push 8
push eax
call fcn.00401082
push 0x47e61c
push ebx
lea ecx, [ebp - 0x30]
call fcn.004016d4
push eax
lea ecx, [ebp - 0xa54]
call fcn.00406554
push str.Path
lea ecx, [ebp - 0xa54]
call fcn.00406713
push eax
lea ecx, [ebp - 8]
call fcn.0040811c
push str.Version
lea ecx, [ebp - 0xa54]
call fcn.00406713
push eax
lea ecx, [ebp - 0x20]
call fcn.0040811c
mov eax, dword [ebp - 8]
push ecx
mov ecx, esp
cmp dword [eax - 0xc], ebx
jl 0x42763b
mov dword [ecx], eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
push eax
call esi
jmp 0x42764a
mov eax, dword [0x47e520]
mov dword [ecx], eax
push dword [ebp - 8]
call fcn.0040833f
lea eax, [ebp - 0x2c]
push eax
call fcn.00427287
pop ecx
pop ecx
push str..exe
lea ecx, [ebp - 4]
call fcn.004013c8
push 0x47ec60
lea ecx, [ebp - 0xc]
call fcn.004013c8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004015b6
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004015b6
mov eax, dword [eax]
lea ecx, [ebp - 0x2c]
push eax
push dword [eax - 8]
call fcn.00401658
lea ecx, [ebp - 0x14]
call fcn.0040139c
lea ecx, [ebp - 0x18]
call fcn.0040139c
lea ecx, [ebp - 0xc]
call fcn.0040139c
lea ecx, [ebp - 4]
call fcn.0040139c
mov edi, 0x4812e4
lea ecx, [ebp - 4]
push edi
call fcn.004013c8
mov esi, 0x491d4c
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004015b6
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004015b6
lea ecx, [ebp - 0x18]
call fcn.0040139c
lea ecx, [ebp - 4]
call fcn.0040139c
push 0x47f04c
lea ecx, [ebp - 0x14]
call fcn.004013c8
push edi
lea ecx, [ebp - 0xc]
call fcn.004013c8
push str.Autoupdate:
lea ecx, [ebp - 4]
call fcn.004013c8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004015b6
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004015b6
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004015b6
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004015b6
lea ecx, [ebp - 0x18]
call fcn.0040139c
lea ecx, [ebp - 0x34]
call fcn.0040139c
lea ecx, [ebp - 0x10]
call fcn.0040139c
lea ecx, [ebp - 4]
call fcn.0040139c
lea ecx, [ebp - 0xc]
call fcn.0040139c
lea ecx, [ebp - 0x14]
call fcn.0040139c
call fcn.004569a3
push str._nBackup:_n
lea ecx, [ebp - 4]
call fcn.004013c8
push 0x47f320
lea ecx, [ebp - 0x14]
call fcn.004013c8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004015b6
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004015b6
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004015b6
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004015b6
mov eax, dword [eax]
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
push 0x40003
push dword [ebp - 0x28]
push eax
push ebx
call esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x44], eax
call fcn.0040139c
lea ecx, [ebp - 0x34]
call fcn.0040139c
lea ecx, [ebp - 0x18]
call fcn.0040139c
lea ecx, [ebp - 0xc]
call fcn.0040139c
lea ecx, [ebp - 0x14]
call fcn.0040139c
lea ecx, [ebp - 4]
call fcn.0040139c
mov eax, dword [ebp - 0x20]
mov edi, dword [sym.imp.USER32.dll_GetActiveWindow]
cmp dword [eax - 8], ebx
jne 0x427854
push str.Bad_Autoupdate_1
lea ecx, [ebp - 0x10]
call fcn.004013c8
mov eax, dword [eax]
push ebx
push ebx
push eax
call edi
push eax
call esi
lea ecx, [ebp - 0x10]
call fcn.0040139c
mov eax, dword [ebp - 8]
cmp dword [eax - 8], ebx
jne 0x42787b
push str.Bad_Autoupdate_2
lea ecx, [ebp - 0x10]
call fcn.004013c8
mov eax, dword [eax]
push ebx
push ebx
push eax
call edi
push eax
call esi
lea ecx, [ebp - 0x10]
call fcn.0040139c
cmp dword [ebp - 0x44], 6
jne 0x42789d
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebx
push dword [ebp - 0x2c]
push dword [ebp - 8]
call esi
push ebx
lea eax, [ebp - 0x250]
push dword [ebp - 8]
push eax
call esi
push 5
push ebx
push ebx
push dword [ebp - 8]
push str.open
push ebx
call fcn.004610d1
add esp, 0x18
call fcn.004272df
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [ebp - 0x38]
call fcn.0040139c
lea ecx, [ebp - 0x28]
call fcn.0040139c
lea ecx, [ebp - 0x2c]
call fcn.0040139c
lea ecx, [ebp - 0x20]
call fcn.0040139c
lea ecx, [ebp - 8]
call fcn.0040139c
lea ecx, [ebp - 0x30]
call fcn.0040139c
lea ecx, [ebp - 0x40]
call fcn.0040139c
lea ecx, [ebp - 0x3c]
call fcn.0040139c
lea ecx, [ebp - 0x24]
call fcn.0040139c
push 1
pop eax
jmp 0x427925
lea ecx, [ebp - 0x40]
call fcn.0040139c
lea ecx, [ebp - 0x3c]
call fcn.0040139c
lea ecx, [ebp - 0x24]
call fcn.0040139c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret