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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef9b6
mov eax, dword fs:[0]
push eax
sub esp, 0x314
mov eax, dword [0x5441b4]
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 [0x547e58]
test eax, eax
je 0x446e35
cmp dword [eax + 8], 4
mov dword [ebp - 0x320], eax
jl 0x446e35
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, 0x9c
call fcn.0042d450
mov edx, dword [ebp - 0x320]
push edx
mov ecx, esi
call fcn.0042b0b0
lea esi, [ebp - 0x26c]
mov ecx, edi
call fcn.00418880
lea esi, [ebp - 0x2a4]
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00418880
mov ecx, dword [ebp - 0x31c]
lea esi, [ebp - 0x288]
mov byte [ebp - 4], 2
call fcn.00418880
mov byte [ebp - 4], 3
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x446e81
lea eax, [ebp - 0x26c]
push eax
call fcn.004b791f
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 0x446f0a
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x44720a
cmp ebx, 0xa
jne 0x446ed2
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 0x446e98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x511680
push str.MainUpdate.cpp
mov edx, 0xc0
mov esi, 2
mov eax, 0x547e58
call fcn.0042a050
add esp, 0xc
lea esi, [ebp - 0x2dc]
call fcn.00403bd0
mov esi, eax
mov byte [ebp - 4], 4
test byte [0x547f74], 1
jne 0x446f3d
or dword [0x547f74], 1
call fcn.00441d90
push 0x4f1080
call fcn.004b809e
add esp, 4
push 0x50b670
lea edx, [ebp - 0x314]
push 0x547ec4
push edx
call fcn.00404300
add esp, 0xc
mov ecx, eax
mov eax, esi
lea ebx, [ebp - 0x250]
mov byte [ebp - 4], 5
call fcn.00412560
mov edi, 8
cmp dword [ebp - 0x300], edi
jb 0x446f85
mov eax, dword [ebp - 0x314]
push eax
call fcn.004b6106
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 0x446fbc
mov edx, dword [ebp - 0x2dc]
push edx
call fcn.004b6106
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.004073c0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 9
lea edx, [eax + 2]
jmp 0x447020
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x447020
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x234]
call fcn.004065e0
push 3
mov eax, 0x5116b8
lea ecx, [ebp - 0x234]
call fcn.004065e0
push ebx
lea eax, [ebp - 0x250]
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x234]
call fcn.004064e0
mov eax, dword [ebp - 0x250]
cmp dword [ebp - 0x23c], edi
jae 0x44707d
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x218]
push ecx
push str.src_s_dest_s
push str.MainUpdate.cpp
mov edx, 0xcd
mov esi, 2
mov eax, 0x547e58
call fcn.0042a050
mov eax, dword [ebp - 0x250]
add esp, 0x10
cmp dword [ebp - 0x23c], edi
jae 0x4470ba
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 0x447253
mov eax, dword [0x547e58]
cmp eax, ebx
je 0x44710f
cmp dword [eax + 8], 4
mov edi, eax
jl 0x44710a
push str.MainUpdate.cpp
push 4
push ecx
mov eax, esp
mov dword [ebp - 0x318], esp
push eax
mov ecx, 0x5116e0
mov esi, 0xd0
call fcn.0042d450
push edi
mov ecx, esi
call fcn.0042b0b0
mov edi, 8
cmp dword [ebp - 0x220], edi
jb 0x447126
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004b6106
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 0x447157
mov eax, dword [ebp - 0x250]
push eax
call fcn.004b6106
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 0x447188
mov edx, dword [ebp - 0x288]
push edx
call fcn.004b6106
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 0x4471b6
mov eax, dword [ebp - 0x2a4]
push eax
call fcn.004b6106
add esp, 4
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x294], ebx
mov byte [ebp - 0x2a4], bl
cmp dword [ebp - 0x258], edi
jb 0x4471df
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.004b6106
add esp, 4
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x25c], ebx
mov byte [ebp - 0x26c], bl
jb 0x447203
mov edx, dword [ebp + 0xc]
push edx
call fcn.004b6106
add esp, 4
xor al, al
jmp 0x447564
push esi
call edi
mov eax, dword [0x547e58]
test eax, eax
je 0x446f0a
cmp dword [eax + 8], 4
mov edi, eax
jl 0x446f0a
push str.MainUpdate.cpp
push 4
push ecx
mov ecx, esp
mov dword [ebp - 0x318], esp
push ecx
mov ecx, 0x511664
mov esi, 0xb1
call fcn.0042d450
push edi
mov ecx, esi
call fcn.0042b0b0
jmp 0x446f0a
push 3
mov eax, 0x511724
lea ecx, [ebp - 0x234]
call fcn.004065e0
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jae 0x447279
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x547e58]
cmp eax, ebx
je 0x4472be
cmp dword [eax + 8], 4
mov edi, eax
jl 0x4472b9
push str.MainUpdate.cpp
push 4
push ecx
mov eax, esp
mov dword [ebp - 0x318], esp
push eax
mov ecx, 0x51172c
mov esi, 0xd5
call fcn.0042d450
push edi
mov ecx, esi
call fcn.0042b0b0
mov edi, 8
lea ecx, [ebp - 0x2f8]
push ecx
lea ecx, [ebp - 0x288]
call fcn.00409d50
add esp, 4
mov edx, 0x545640
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 0xa
call fcn.00403830
mov esi, eax
mov byte [ebp - 4], 0xb
test byte [0x547f74], 1
jne 0x44730f
or dword [0x547f74], 1
call fcn.00441d90
push 0x4f1080
call fcn.004b809e
add esp, 4
movzx edx, byte [0x547f52]
push edx
lea edx, [ebp - 0x2f8]
mov ecx, esi
call fcn.00407950
add esp, 4
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x2c8], edi
jb 0x447342
mov eax, dword [ebp - 0x2dc]
push eax
call fcn.004b6106
add esp, 4
lea ecx, [ebp - 0x2c0]
push ecx
lea ecx, [ebp - 0x2a4]
call fcn.00409d50
add esp, 4
mov byte [ebp - 4], 0xc
test byte [0x547f74], 1
jne 0x44737d
or dword [0x547f74], 1
call fcn.00441d90
push 0x4f1080
call fcn.004b809e
add esp, 4
cmp byte [0x547f51], bl
je 0x44739f
cmp dword [ebp - 0x2b0], ebx
jne 0x44739f
push 7
push str._update
lea ecx, [ebp - 0x2c0]
call fcn.004073c0
mov ecx, dword [ebp - 0x2c0]
cmp dword [ebp - 0x2ac], edi
jae 0x4473b3
lea ecx, [ebp - 0x2c0]
mov eax, dword [ebp - 0x250]
cmp dword [ebp - 0x23c], edi
jae 0x4473c7
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 [0x547e58]
cmp eax, ebx
je 0x447416
cmp dword [eax + 8], 4
mov edi, eax
jl 0x447411
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, 0xe0
call fcn.0042d450
push edi
mov ecx, esi
call fcn.0042b0b0
mov edi, 8
cmp dword [ebp - 0x2ac], edi
jb 0x44742d
mov eax, dword [ebp - 0x2c0]
push eax
call fcn.004b6106
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 0x44745e
mov edx, dword [ebp - 0x2f8]
push edx
call fcn.004b6106
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 0x44748a
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004b6106
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 0x4474b6
mov eax, dword [ebp - 0x250]
push eax
call fcn.004b6106
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 0x4474e7
mov edx, dword [ebp - 0x288]
push edx
call fcn.004b6106
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 0x447515
mov eax, dword [ebp - 0x2a4]
push eax
call fcn.004b6106
add esp, 4
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x294], ebx
mov byte [ebp - 0x2a4], bl
cmp dword [ebp - 0x258], edi
jb 0x44753e
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.004b6106
add esp, 4
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x25c], ebx
mov byte [ebp - 0x26c], bl
jb 0x447562
mov edx, dword [ebp + 0xc]
push edx
call fcn.004b6106
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.004b6111
mov esp, ebp
pop ebp
ret