Function at 0x40e405
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa54
mov eax, dword [0x4a16f0]
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.004070c2
lea eax, [ebp - 0x24]
push eax
call fcn.0040e153
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00401c06
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_CharLowerW]
lea eax, [ebp - 0x250]
lea ecx, [ebp - 0x3c]
push eax
call fcn.004070c2
lea eax, [ebp - 0x250]
lea ecx, [ebp - 0x40]
push eax
call fcn.004070c2
push str._autoupdate
lea ecx, [ebp - 0x28]
call fcn.0040182e
mov eax, dword [eax]
push ebx
push eax
lea ecx, [ebp - 0x24]
call fcn.00408ef9
test eax, eax
lea ecx, [ebp - 0x28]
setge byte [ebp - 0x19]
call fcn.00401802
cmp byte [ebp - 0x19], bl
je 0x40e82f
mov eax, dword [0x4a16f8]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [eax - 0xc], ebx
jl 0x40e4d6
mov dword [ebp - 0x30], eax
add eax, 0xfffffff4
push eax
call esi
jmp 0x40e4e8
mov ecx, dword [0x4581d0]
push eax
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x30]
call fcn.00401988
push 0x40e84e
push 0x100
lea eax, [ebp - 0xa50]
push 8
push eax
call fcn.0040290f
push 0x459a98
push ebx
lea ecx, [ebp - 0x30]
call fcn.00401b75
push eax
lea ecx, [ebp - 0xa54]
call fcn.0040e858
push str.Path
lea ecx, [ebp - 0xa54]
call fcn.0040e9d5
push eax
lea ecx, [ebp - 8]
call fcn.004070c2
push str.Version
lea ecx, [ebp - 0xa54]
call fcn.0040e9d5
push eax
lea ecx, [ebp - 0x20]
call fcn.004070c2
mov eax, dword [ebp - 8]
push ecx
mov ecx, esp
cmp dword [eax - 0xc], ebx
jl 0x40e564
mov dword [ecx], eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
push eax
call esi
jmp 0x40e573
mov eax, dword [0x4581d0]
mov dword [ecx], eax
push dword [ebp - 8]
call fcn.00401988
lea eax, [ebp - 0x2c]
push eax
call fcn.0040e1b0
pop ecx
pop ecx
push 0x459a74
lea ecx, [ebp - 4]
call fcn.0040182e
push 0x458758
lea ecx, [ebp - 0xc]
call fcn.0040182e
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.004019f3
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004019f3
mov eax, dword [eax]
lea ecx, [ebp - 0x2c]
push eax
push dword [eax - 8]
call fcn.00401ae1
lea ecx, [ebp - 0x14]
call fcn.00401802
lea ecx, [ebp - 0x18]
call fcn.00401802
lea ecx, [ebp - 0xc]
call fcn.00401802
lea ecx, [ebp - 4]
call fcn.00401802
mov edi, 0x459a70
lea ecx, [ebp - 4]
push edi
call fcn.0040182e
mov esi, 0x4ca3f8
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004019f3
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004019f3
lea ecx, [ebp - 0x18]
call fcn.00401802
lea ecx, [ebp - 4]
call fcn.00401802
push 0x459a6c
lea ecx, [ebp - 0x14]
call fcn.0040182e
push edi
lea ecx, [ebp - 0xc]
call fcn.0040182e
push str.Autoupdate:
lea ecx, [ebp - 4]
call fcn.0040182e
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.004019f3
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004019f3
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004019f3
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004019f3
lea ecx, [ebp - 0x18]
call fcn.00401802
lea ecx, [ebp - 0x34]
call fcn.00401802
lea ecx, [ebp - 0x10]
call fcn.00401802
lea ecx, [ebp - 4]
call fcn.00401802
lea ecx, [ebp - 0xc]
call fcn.00401802
lea ecx, [ebp - 0x14]
call fcn.00401802
push str._nBackup:_n
lea ecx, [ebp - 4]
call fcn.0040182e
push 0x459a4c
lea ecx, [ebp - 0x14]
call fcn.0040182e
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.004019f3
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004019f3
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004019f3
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004019f3
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.00401802
lea ecx, [ebp - 0x34]
call fcn.00401802
lea ecx, [ebp - 0x18]
call fcn.00401802
lea ecx, [ebp - 0xc]
call fcn.00401802
lea ecx, [ebp - 0x14]
call fcn.00401802
lea ecx, [ebp - 4]
call fcn.00401802
mov eax, dword [ebp - 0x20]
mov edi, dword [sym.imp.USER32.dll_GetActiveWindow]
cmp dword [eax - 8], ebx
jne 0x40e778
push str.Bad_Autoupdate_1
lea ecx, [ebp - 0x10]
call fcn.0040182e
mov eax, dword [eax]
push ebx
push ebx
push eax
call edi
push eax
call esi
lea ecx, [ebp - 0x10]
call fcn.00401802
mov eax, dword [ebp - 8]
cmp dword [eax - 8], ebx
jne 0x40e79f
push str.Bad_Autoupdate_2
lea ecx, [ebp - 0x10]
call fcn.0040182e
mov eax, dword [eax]
push ebx
push ebx
push eax
call edi
push eax
call esi
lea ecx, [ebp - 0x10]
call fcn.00401802
cmp dword [ebp - 0x44], 6
jne 0x40e7c1
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.0043677a
add esp, 0x18
call fcn.0040e208
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [ebp - 0x38]
call fcn.00401802
lea ecx, [ebp - 0x28]
call fcn.00401802
lea ecx, [ebp - 0x2c]
call fcn.00401802
lea ecx, [ebp - 0x20]
call fcn.00401802
lea ecx, [ebp - 8]
call fcn.00401802
lea ecx, [ebp - 0x30]
call fcn.00401802
lea ecx, [ebp - 0x40]
call fcn.00401802
lea ecx, [ebp - 0x3c]
call fcn.00401802
lea ecx, [ebp - 0x24]
call fcn.00401802
push 1
pop eax
jmp 0x40e849
lea ecx, [ebp - 0x40]
call fcn.00401802
lea ecx, [ebp - 0x3c]
call fcn.00401802
lea ecx, [ebp - 0x24]
call fcn.00401802
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret