Function at 0x4494e0
Capabilities:
Copy file
Create process on windows
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4746
mov eax, dword fs:[0]
push eax
sub esp, 0x314
mov eax, dword [0x54b1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0x31c], eax
mov dword [ebp - 4], 0
mov eax, dword [0x54eee0]
test eax, eax
je 0x449565
cmp dword [eax + 8], 4
mov dword [ebp - 0x320], eax
jl 0x449565
push str.MainUpdate.cpp
push 4
push ecx
mov ecx, esp
mov dword [ebp - 0x318], esp
push ecx
mov ecx, str.begin_RunNewUpdate
mov esi, 0x9d
call fcn.0042ef60
mov edx, dword [ebp - 0x320]
push edx
mov ecx, esi
call fcn.0042cbc0
lea esi, [ebp - 0x26c]
mov ecx, edi
call fcn.0041a3a0
lea esi, [ebp - 0x2a4]
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0041a3a0
mov ecx, dword [ebp - 0x31c]
lea esi, [ebp - 0x288]
mov byte [ebp - 4], 2
call fcn.0041a3a0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x4495b1
lea eax, [ebp - 0x26c]
push eax
call fcn.004bbcde
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
mov dword [ebp - 0x31c], eax
xor ebx, ebx
mov eax, dword [ebp - 0x31c]
push eax
push 0
push 1
inc ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x44963a
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x44993a
cmp ebx, 0xa
jne 0x449602
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 0x14
jl 0x4495c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x516e70
push str.MainUpdate.cpp
mov edx, 0xc1
mov esi, 2
mov eax, 0x54eee0
call fcn.0042bb60
add esp, 0xc
lea esi, [ebp - 0x2dc]
call fcn.00403ce0
mov esi, eax
mov byte [ebp - 4], 4
test byte [0x54f018], 1
jne 0x44966d
or dword [0x54f018], 1
call fcn.00443940
push 0x4f5ff0
call fcn.004bc45e
add esp, 4
push 0x510884
lea edx, [ebp - 0x314]
push 0x54ef68
push edx
call fcn.004076e0
add esp, 0xc
mov ecx, eax
mov eax, esi
lea ebx, [ebp - 0x250]
mov byte [ebp - 4], 5
call fcn.00413f80
mov edi, 8
cmp dword [ebp - 0x300], edi
jb 0x4496b5
mov eax, dword [ebp - 0x314]
push eax
call fcn.004ba3a4
add esp, 4
mov esi, 7
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x300], esi
mov dword [ebp - 0x304], ebx
mov word [ebp - 0x314], cx
mov byte [ebp - 4], 8
cmp dword [ebp - 0x2c8], edi
jb 0x4496ec
mov edx, dword [ebp - 0x2dc]
push edx
call fcn.004ba3a4
add esp, 4
push 0x104
lea ecx, [ebp - 0x218]
push ecx
xor eax, eax
push ebx
mov dword [ebp - 0x2c8], esi
mov dword [ebp - 0x2cc], ebx
mov word [ebp - 0x2dc], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 6
xor edx, edx
push str._rY6R
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
call fcn.00408440
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 9
lea edx, [eax + 2]
jmp 0x449750
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x449750
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x234]
call fcn.00407450
push 3
mov eax, 0x516ea8
lea ecx, [ebp - 0x234]
call fcn.00407450
push ebx
lea eax, [ebp - 0x250]
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x234]
call fcn.00407350
mov eax, dword [ebp - 0x250]
cmp dword [ebp - 0x23c], edi
jae 0x4497ad
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x218]
push ecx
push str.src_s_dest_s
push str.MainUpdate.cpp
mov edx, 0xce
mov esi, 2
mov eax, 0x54eee0
call fcn.0042bb60
mov eax, dword [ebp - 0x250]
add esp, 0x10
cmp dword [ebp - 0x23c], edi
jae 0x4497ea
lea eax, [ebp - 0x250]
push ebx
push eax
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x449983
mov eax, dword [0x54eee0]
cmp eax, ebx
je 0x44983f
cmp dword [eax + 8], 4
mov edi, eax
jl 0x44983a
push str.MainUpdate.cpp
push 4
push ecx
mov eax, esp
mov dword [ebp - 0x318], esp
push eax
mov ecx, 0x516ed0
mov esi, 0xd1
call fcn.0042ef60
push edi
mov ecx, esi
call fcn.0042cbc0
mov edi, 8
cmp dword [ebp - 0x220], edi
jb 0x449856
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004ba3a4
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
cmp dword [ebp - 0x23c], edi
jb 0x449887
mov eax, dword [ebp - 0x250]
push eax
call fcn.004ba3a4
add esp, 4
xor ecx, ecx
mov edi, 0x10
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], cx
cmp dword [ebp - 0x274], edi
jb 0x4498b8
mov edx, dword [ebp - 0x288]
push edx
call fcn.004ba3a4
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x278], ebx
mov byte [ebp - 0x288], bl
cmp dword [ebp - 0x290], edi
jb 0x4498e6
mov eax, dword [ebp - 0x2a4]
push eax
call fcn.004ba3a4
add esp, 4
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x294], ebx
mov byte [ebp - 0x2a4], bl
cmp dword [ebp - 0x258], edi
jb 0x44990f
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.004ba3a4
add esp, 4
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x25c], ebx
mov byte [ebp - 0x26c], bl
jb 0x449933
mov edx, dword [ebp + 0xc]
push edx
call fcn.004ba3a4
add esp, 4
xor al, al
jmp 0x449c94
push esi
call edi
mov eax, dword [0x54eee0]
test eax, eax
je 0x44963a
cmp dword [eax + 8], 4
mov edi, eax
jl 0x44963a
push str.MainUpdate.cpp
push 4
push ecx
mov ecx, esp
mov dword [ebp - 0x318], esp
push ecx
mov ecx, 0x516e54
mov esi, 0xb2
call fcn.0042ef60
push edi
mov ecx, esi
call fcn.0042cbc0
jmp 0x44963a
push 3
mov eax, 0x516f14
lea ecx, [ebp - 0x234]
call fcn.00407450
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jae 0x4499a9
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x54eee0]
cmp eax, ebx
je 0x4499ee
cmp dword [eax + 8], 4
mov edi, eax
jl 0x4499e9
push str.MainUpdate.cpp
push 4
push ecx
mov eax, esp
mov dword [ebp - 0x318], esp
push eax
mov ecx, 0x516f1c
mov esi, 0xd6
call fcn.0042ef60
push edi
mov ecx, esi
call fcn.0042cbc0
mov edi, 8
lea ecx, [ebp - 0x2f8]
push ecx
lea ecx, [ebp - 0x288]
call fcn.0040afa0
add esp, 4
mov edx, 0x54c674
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 0xa
call fcn.00403940
mov esi, eax
mov byte [ebp - 4], 0xb
test byte [0x54f018], 1
jne 0x449a3f
or dword [0x54f018], 1
call fcn.00443940
push 0x4f5ff0
call fcn.004bc45e
add esp, 4
movzx edx, byte [0x54eff6]
push edx
lea edx, [ebp - 0x2f8]
mov ecx, esi
call fcn.00408a00
add esp, 4
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x2c8], edi
jb 0x449a72
mov eax, dword [ebp - 0x2dc]
push eax
call fcn.004ba3a4
add esp, 4
lea ecx, [ebp - 0x2c0]
push ecx
lea ecx, [ebp - 0x2a4]
call fcn.0040afa0
add esp, 4
mov byte [ebp - 4], 0xc
test byte [0x54f018], 1
jne 0x449aad
or dword [0x54f018], 1
call fcn.00443940
push 0x4f5ff0
call fcn.004bc45e
add esp, 4
cmp byte [0x54eff5], bl
je 0x449acf
cmp dword [ebp - 0x2b0], ebx
jne 0x449acf
push 7
push str._update
lea ecx, [ebp - 0x2c0]
call fcn.00408440
mov ecx, dword [ebp - 0x2c0]
cmp dword [ebp - 0x2ac], edi
jae 0x449ae3
lea ecx, [ebp - 0x2c0]
mov eax, dword [ebp - 0x250]
cmp dword [ebp - 0x23c], edi
jae 0x449af7
lea eax, [ebp - 0x250]
push 1
push ebx
push ecx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [0x54eee0]
cmp eax, ebx
je 0x449b46
cmp dword [eax + 8], 4
mov edi, eax
jl 0x449b41
push str.MainUpdate.cpp
push 4
push ecx
mov edx, esp
mov dword [ebp - 0x318], esp
push edx
mov ecx, str.end_RunNewUpdate
mov esi, 0xe1
call fcn.0042ef60
push edi
mov ecx, esi
call fcn.0042cbc0
mov edi, 8
cmp dword [ebp - 0x2ac], edi
jb 0x449b5d
mov eax, dword [ebp - 0x2c0]
push eax
call fcn.004ba3a4
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x2ac], esi
mov dword [ebp - 0x2b0], ebx
mov word [ebp - 0x2c0], cx
cmp dword [ebp - 0x2e4], edi
jb 0x449b8e
mov edx, dword [ebp - 0x2f8]
push edx
call fcn.004ba3a4
add esp, 4
xor eax, eax
mov dword [ebp - 0x2e4], esi
mov dword [ebp - 0x2e8], ebx
mov word [ebp - 0x2f8], ax
cmp dword [ebp - 0x220], edi
jb 0x449bba
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004ba3a4
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
cmp dword [ebp - 0x23c], edi
jb 0x449be6
mov eax, dword [ebp - 0x250]
push eax
call fcn.004ba3a4
add esp, 4
xor ecx, ecx
mov edi, 0x10
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], cx
cmp dword [ebp - 0x274], edi
jb 0x449c17
mov edx, dword [ebp - 0x288]
push edx
call fcn.004ba3a4
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x278], ebx
mov byte [ebp - 0x288], bl
cmp dword [ebp - 0x290], edi
jb 0x449c45
mov eax, dword [ebp - 0x2a4]
push eax
call fcn.004ba3a4
add esp, 4
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x294], ebx
mov byte [ebp - 0x2a4], bl
cmp dword [ebp - 0x258], edi
jb 0x449c6e
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.004ba3a4
add esp, 4
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x25c], ebx
mov byte [ebp - 0x26c], bl
jb 0x449c92
mov edx, dword [ebp + 0xc]
push edx
call fcn.004ba3a4
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba3af
mov esp, ebp
pop ebp
ret