Function at 0x412ef6
Capabilities:
Copy file

Disassembly:
mov eax, 0x5e50ce
call fcn.005c3f5c
sub esp, 0x834
push esi
push edi
xor edi, edi
mov dword [ebp - 0x14], edi
cmp dword [ebx + 0xf4], edi
jne 0x412f1c
xor al, al
jmp 0x413208
cmp dword [ebx + 0xd0], edi
jne 0x412f50
push str.NO_NEW_PATCHER_PATH
lea ecx, [ebp - 0x38]
call fcn.00406054
mov dword [ebp - 4], edi
mov eax, dword [ebx]
lea ecx, [ebp - 0x38]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x38]
call fcn.00403955
jmp 0x412f15
lea esi, [ebp - 0x18]
call fcn.00413629
test al, al
jne 0x412f82
push str.CUR_PATCHER_SELF_OPEN_ERROR
lea ecx, [ebp - 0x38]
call fcn.00406054
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov eax, dword [ebx]
lea ecx, [ebp - 0x38]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
or dword [ebp - 4], 0xffffffff
push edi
push esi
jmp 0x412f46
cmp dword [ebx + 0xf0], 8
jb 0x412f93
mov edi, dword [ebx + 0xdc]
jmp 0x412f99
lea edi, [ebx + 0xdc]
test edi, edi
je 0x412ffd
lea eax, [ebp - 0x43c]
test eax, eax
je 0x412ffd
call fcn.0041ef00
lea edx, [ebp - 0x43c]
test eax, eax
jne 0x412fd7
mov eax, edi
mov esi, 0x200
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
dec esi
movzx ecx, cx
inc eax
inc eax
test cx, cx
je 0x412ffd
test esi, esi
jne 0x412fbf
jmp 0x412ff7
add eax, 2
mov edi, 0x200
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
dec edi
movzx ecx, cx
inc eax
inc eax
test cx, cx
je 0x412ffd
test edi, edi
jne 0x412fe1
xor eax, eax
mov word [ebp - 0x3e], ax
lea ecx, [ebp - 0x43c]
call fcn.004069eb
cmp dword [ebx + 0xf4], 0
jne 0x41307f
push str.NEW_PATCHER_RUNNING
push ecx
call fcn.00403080
add esp, 4
call fcn.00405670
push eax
lea ecx, [ebp - 0x18]
call fcn.004032b0
push 2
pop edi
mov dword [ebp - 4], edi
xor esi, esi
push str.NEW_PATCHER_MANUAL_CHANGING
inc esi
push ecx
mov dword [ebp - 0x14], esi
call fcn.00403080
add esp, 4
call fcn.00405670
push eax
lea ecx, [ebp - 0x1c]
call fcn.004032b0
push 3
pop eax
mov dword [ebp - 4], eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
mov dword [ebp - 0x14], eax
push 0x80a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004fa3d0
add esp, 0x18
cmp eax, edi
jne 0x413082
jmp 0x413084
push 2
pop edi
xor esi, esi
mov dword [ebp - 4], edi
test byte [ebp - 0x14], 2
je 0x413099
and dword [ebp - 0x14], 0xfffffffd
lea ecx, [ebp - 0x1c]
call fcn.00401017
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x14], 1
je 0x4130af
and dword [ebp - 0x14], 0xfffffffe
lea ecx, [ebp - 0x18]
call fcn.00401017
xor edi, edi
cmp esi, edi
je 0x4130ce
push str.NEW_PATCHER_CHANGE_ERROR
lea ecx, [ebp - 0x38]
call fcn.00406054
mov dword [ebp - 4], 4
jmp 0x412f34
push 5
pop esi
cmp dword [ebx + 0xf0], 8
jb 0x4130e2
mov ecx, dword [ebx + 0xdc]
jmp 0x4130e8
lea ecx, [ebx + 0xdc]
cmp dword [ebx + 0xd4], 8
jb 0x4130f9
mov eax, dword [ebx + 0xc0]
jmp 0x4130ff
lea eax, [ebx + 0xc0]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x41311d
push 0x3e8
call fcn.004d4000
inc edi
pop ecx
cmp edi, esi
jne 0x4130d1
cmp edi, esi
jne 0x413147
push str.NEW_PATCHER_CHANGE_ERROR
lea ecx, [ebp - 0x38]
call fcn.00406054
mov dword [ebp - 4], esi
mov eax, dword [ebx]
lea ecx, [ebp - 0x38]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
or dword [ebp - 4], 0xffffffff
push 0
jmp 0x412f44
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x83c], ax
lea eax, [ebp - 0x83a]
push eax
call fcn.00576e90
mov eax, dword [0x68cc7c]
add eax, 0xa4
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x41317a
mov edi, dword [eax + 4]
jmp 0x41317d
lea edi, [eax + 4]
push 0x62b29c
mov esi, 0x200
lea eax, [ebp - 0x83c]
push esi
push eax
call fcn.0041ee90
add esp, 0xc
test edi, edi
je 0x4131b6
cmp word [edi], 0
je 0x4131b6
push edi
mov ecx, esi
push str.__p___s_
lea esi, [ebp - 0x83c]
call fcn.0041ebc0
pop ecx
pop ecx
call fcn.0040105e
cmp dword [ebx + 0xf0], 8
jb 0x4131cc
mov ecx, dword [ebx + 0xdc]
jmp 0x4131d2
lea ecx, [ebx + 0xdc]
lea eax, [ebp - 0x83c]
push 0
push eax
call fcn.004072c0
pop ecx
pop ecx
test eax, eax
jne 0x4131ff
push str.NEW_PATCHER_RUN_ERROR
lea ecx, [ebp - 0x38]
call fcn.00406054
mov dword [ebp - 4], 6
jmp 0x413131
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret