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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb7eb
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x53f1e4]
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 - 0x300], eax
mov dword [ebp - 4], 0
mov eax, dword [0x5430d8]
test eax, eax
je 0x446c75
cmp dword [eax + 8], 4
mov dword [ebp - 0x304], eax
jl 0x446c75
push str.MainUpdate.cpp
push 4
push ecx
mov ecx, esp
mov dword [ebp - 0x2fc], esp
push ecx
mov ecx, str.begin_RunNewUpdate
mov esi, 0x9e
call fcn.00408620
mov edx, dword [ebp - 0x304]
push edx
mov ecx, esi
call fcn.0042c420
lea esi, [ebp - 0x26c]
mov ecx, edi
call fcn.00419fd0
lea esi, [ebp - 0x2a4]
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00419fd0
mov ecx, dword [ebp - 0x300]
lea esi, [ebp - 0x2c0]
mov byte [ebp - 4], 2
call fcn.00419fd0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x446cc1
lea eax, [ebp - 0x26c]
push eax
call fcn.004b37ec
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
mov dword [ebp - 0x300], eax
xor edi, edi
mov eax, dword [ebp - 0x300]
push eax
push 0
push 1
inc edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x446d4a
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x44700d
cmp edi, 0xa
jne 0x446d12
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x14
jl 0x446cd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x50c898
push str.MainUpdate.cpp
mov edx, 0xc2
mov esi, 2
mov eax, 0x5430d8
call fcn.0042b3c0
add esp, 0xc
test byte [0x5431e4], 1
jne 0x446d6c
or dword [0x5431e4], 1
call fcn.00442d10
push 0x4ecbd0
call fcn.004b4336
add esp, 4
push 0x5062dc
lea edx, [ebp - 0x288]
push 0x543134
push edx
call fcn.00403a10
add esp, 0xc
push eax
mov eax, 0x50c8c0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 4
call fcn.004039a0
add esp, 4
mov edi, 8
mov byte [ebp - 4], 6
cmp dword [ebp - 0x274], edi
jb 0x446dbd
mov eax, dword [ebp - 0x288]
push eax
call fcn.004b1c22
add esp, 4
push 0x104
lea edx, [ebp - 0x218]
xor ebx, ebx
push edx
xor ecx, ecx
mov esi, 7
push ebx
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x278], ebx
mov word [ebp - 0x288], cx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 6
xor eax, eax
push str._rY6R
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
call fcn.00404960
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x446e20
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x234]
call fcn.00403f00
push 3
mov eax, 0x50c8e8
lea ecx, [ebp - 0x234]
call fcn.00403f00
push ebx
lea ecx, [ebp - 0x250]
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0x234]
call fcn.00403e00
mov eax, dword [ebp - 0x250]
cmp dword [ebp - 0x23c], edi
jae 0x446e7d
lea eax, [ebp - 0x250]
push eax
lea edx, [ebp - 0x218]
push edx
push str.src_s_dest_s
push str.MainUpdate.cpp
mov edx, 0xcf
mov esi, 2
mov eax, 0x5430d8
call fcn.0042b3c0
mov eax, dword [ebp - 0x250]
add esp, 0x10
cmp dword [ebp - 0x23c], edi
jae 0x446eba
lea eax, [ebp - 0x250]
push ebx
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x447056
mov eax, dword [0x5430d8]
cmp eax, ebx
je 0x446f0f
cmp dword [eax + 8], 4
mov edi, eax
jl 0x446f0a
push str.MainUpdate.cpp
push 4
push ecx
mov ecx, esp
mov dword [ebp - 0x2fc], esp
push ecx
mov ecx, 0x50c910
mov esi, 0xd2
call fcn.00408620
push edi
mov ecx, esi
call fcn.0042c420
mov edi, 8
cmp dword [ebp - 0x220], edi
jb 0x446f26
mov edx, dword [ebp - 0x234]
push edx
call fcn.004b1c22
add esp, 4
xor eax, eax
mov esi, 7
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
cmp dword [ebp - 0x23c], edi
jb 0x446f57
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.004b1c22
add esp, 4
xor edx, edx
mov edi, 0x10
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], dx
cmp dword [ebp - 0x2ac], edi
jb 0x446f88
mov eax, dword [ebp - 0x2c0]
push eax
call fcn.004b1c22
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x2ac], esi
mov dword [ebp - 0x2b0], ebx
mov byte [ebp - 0x2c0], 0
cmp dword [ebp - 0x290], edi
jb 0x446fb7
mov ecx, dword [ebp - 0x2a4]
push ecx
call fcn.004b1c22
add esp, 4
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x294], ebx
mov byte [ebp - 0x2a4], 0
cmp dword [ebp - 0x258], edi
jb 0x446fe1
mov edx, dword [ebp - 0x26c]
push edx
call fcn.004b1c22
add esp, 4
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x25c], ebx
mov byte [ebp - 0x26c], 0
jb 0x447006
mov eax, dword [ebp + 0xc]
push eax
call fcn.004b1c22
add esp, 4
xor al, al
jmp 0x447388
push esi
call ebx
mov eax, dword [0x5430d8]
test eax, eax
je 0x446d4a
cmp dword [eax + 8], 4
mov edi, eax
jl 0x446d4a
push str.MainUpdate.cpp
push 4
push ecx
mov ecx, esp
mov dword [ebp - 0x2fc], esp
push ecx
mov ecx, 0x50c87c
mov esi, 0xb3
call fcn.00408620
push edi
mov ecx, esi
call fcn.0042c420
jmp 0x446d4a
push 3
mov eax, 0x50c954
lea ecx, [ebp - 0x234]
call fcn.00403f00
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jae 0x44707c
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x5430d8]
cmp eax, ebx
je 0x4470c1
cmp dword [eax + 8], 4
mov edi, eax
jl 0x4470bc
push str.MainUpdate.cpp
push 4
push ecx
mov ecx, esp
mov dword [ebp - 0x2fc], esp
push ecx
mov ecx, 0x50c95c
mov esi, 0xd7
call fcn.00408620
push edi
mov ecx, esi
call fcn.0042c420
mov edi, 8
lea edx, [ebp - 0x2f8]
push edx
lea ecx, [ebp - 0x2c0]
call fcn.0040b470
add esp, 4
mov byte [ebp - 4], 8
push 0xa
xor eax, eax
mov esi, 7
push 0x50c074
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x278], ebx
mov word [ebp - 0x288], ax
call fcn.00404960
mov byte [ebp - 4], 9
test byte [0x5431e4], 1
jne 0x44712c
or dword [0x5431e4], 1
call fcn.00442d10
push 0x4ecbd0
call fcn.004b4336
add esp, 4
movzx ecx, byte [0x5431c2]
push ecx
lea edx, [ebp - 0x2f8]
lea ecx, [ebp - 0x288]
call fcn.00408ef0
add esp, 4
mov byte [ebp - 4], 8
cmp dword [ebp - 0x274], edi
jb 0x447163
mov edx, dword [ebp - 0x288]
push edx
call fcn.004b1c22
add esp, 4
lea eax, [ebp - 0x2dc]
push eax
lea ecx, [ebp - 0x2a4]
call fcn.0040b470
add esp, 4
mov byte [ebp - 4], 0xa
test byte [0x5431e4], 1
jne 0x44719e
or dword [0x5431e4], 1
call fcn.00442d10
push 0x4ecbd0
call fcn.004b4336
add esp, 4
cmp byte [0x5431c1], 0
je 0x4471c0
cmp dword [ebp - 0x2cc], ebx
jne 0x4471c0
push esi
push str._update
lea ecx, [ebp - 0x2dc]
call fcn.00404960
mov ecx, dword [ebp - 0x2dc]
cmp dword [ebp - 0x2c8], edi
jae 0x4471d4
lea ecx, [ebp - 0x2dc]
mov eax, dword [ebp - 0x250]
cmp dword [ebp - 0x23c], edi
jae 0x4471e8
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 [0x5430d8]
cmp eax, ebx
je 0x44723c
cmp dword [eax + 8], 4
mov edi, eax
jl 0x447232
push str.MainUpdate.cpp
push 4
push ecx
mov ecx, esp
mov dword [ebp - 0x2fc], esp
push ecx
mov ecx, str.end_RunNewUpdate
mov esi, 0xe2
call fcn.00408620
push edi
mov ecx, esi
call fcn.0042c420
mov esi, 7
mov edi, 8
cmp dword [ebp - 0x2c8], edi
jb 0x447253
mov edx, dword [ebp - 0x2dc]
push edx
call fcn.004b1c22
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c8], esi
mov dword [ebp - 0x2cc], ebx
mov word [ebp - 0x2dc], ax
cmp dword [ebp - 0x2e4], edi
jb 0x44727f
mov ecx, dword [ebp - 0x2f8]
push ecx
call fcn.004b1c22
add esp, 4
xor edx, edx
mov dword [ebp - 0x2e4], esi
mov dword [ebp - 0x2e8], ebx
mov word [ebp - 0x2f8], dx
cmp dword [ebp - 0x220], edi
jb 0x4472ab
mov eax, dword [ebp - 0x234]
push eax
call fcn.004b1c22
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
cmp dword [ebp - 0x23c], edi
jb 0x4472d7
mov edx, dword [ebp - 0x250]
push edx
call fcn.004b1c22
add esp, 4
xor eax, eax
mov edi, 0x10
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], ax
cmp dword [ebp - 0x2ac], edi
jb 0x447308
mov ecx, dword [ebp - 0x2c0]
push ecx
call fcn.004b1c22
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x2ac], esi
mov dword [ebp - 0x2b0], ebx
mov byte [ebp - 0x2c0], 0
cmp dword [ebp - 0x290], edi
jb 0x447337
mov edx, dword [ebp - 0x2a4]
push edx
call fcn.004b1c22
add esp, 4
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x294], ebx
mov byte [ebp - 0x2a4], 0
cmp dword [ebp - 0x258], edi
jb 0x447361
mov eax, dword [ebp - 0x26c]
push eax
call fcn.004b1c22
add esp, 4
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x25c], ebx
mov byte [ebp - 0x26c], 0
jb 0x447386
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004b1c22
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.004b1c2d
mov esp, ebp
pop ebp
ret