Function at 0x414021
Capabilities:
Copy file

Disassembly:
mov eax, 0x630aa4
call fcn.0060d220
sub esp, 0x824
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
cmp dword [ebx + 0x110], edi
jne 0x41404b
xor al, al
jmp 0x41433e
cmp dword [ebx + 0xec], edi
jne 0x41407f
push str.NO_NEW_PATCHER_PATH
lea ecx, [ebp - 0x30]
call fcn.004030bf
mov dword [ebp - 4], edi
mov eax, dword [ebx]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x30]
call fcn.0040337f
jmp 0x414044
lea esi, [ebp + 8]
call fcn.00414764
test al, al
jne 0x4140b1
push str.CUR_PATCHER_SELF_OPEN_ERROR
lea ecx, [ebp - 0x30]
call fcn.004030bf
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov eax, dword [ebx]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
or dword [ebp - 4], 0xffffffff
push edi
push esi
jmp 0x414075
cmp dword [ebx + 0x10c], 8
jb 0x4140c2
mov esi, dword [ebx + 0xf8]
jmp 0x4140c8
lea esi, [ebx + 0xf8]
cmp esi, edi
je 0x41412e
lea eax, [ebp - 0x430]
test eax, eax
je 0x41412e
mov edi, esi
call fcn.00421220
lea edx, [ebp - 0x430]
test eax, eax
jne 0x414108
mov eax, esi
mov edi, 0x200
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
dec edi
movzx ecx, cx
inc eax
inc eax
test cx, cx
je 0x41412e
test edi, edi
jne 0x4140f0
jmp 0x414128
add eax, 2
mov esi, 0x200
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
dec esi
movzx ecx, cx
inc eax
inc eax
test cx, cx
je 0x41412e
test esi, esi
jne 0x414112
xor eax, eax
mov word [ebp - 0x32], ax
lea ecx, [ebp - 0x430]
call fcn.0040667e
cmp dword [ebx + 0x110], 0
jne 0x4141b4
push str.NEW_PATCHER_RUNNING
push ecx
call fcn.00402e56
pop ecx
mov esi, eax
call fcn.00405362
push eax
lea ecx, [ebp - 0x14]
call fcn.004030fb
push 2
pop edi
mov dword [ebp - 4], edi
push str.NEW_PATCHER_MANUAL_CHANGING
push ecx
mov dword [ebp - 0x10], 1
call fcn.00402e56
pop ecx
mov esi, eax
call fcn.00405362
push eax
lea ecx, [ebp + 8]
call fcn.004030fb
push 3
pop eax
mov dword [ebp - 4], eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
mov dword [ebp - 0x10], eax
push 0x80a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0053ad70
add esp, 0x18
cmp eax, edi
jne 0x4141b4
xor esi, esi
inc esi
jmp 0x4141b6
xor esi, esi
mov dword [ebp - 4], 2
test byte [ebp - 0x10], 2
je 0x4141cf
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp + 8]
call fcn.00401017
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x10], 1
je 0x4141e5
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x14]
call fcn.00401017
xor edi, edi
cmp esi, edi
je 0x414204
push str.NEW_PATCHER_CHANGE_ERROR
lea ecx, [ebp - 0x30]
call fcn.004030bf
mov dword [ebp - 4], 4
jmp 0x414063
push 5
pop esi
cmp dword [ebx + 0x10c], 8
jb 0x414218
mov ecx, dword [ebx + 0xf8]
jmp 0x41421e
lea ecx, [ebx + 0xf8]
cmp dword [ebx + 0xf0], 8
jb 0x41422f
mov eax, dword [ebx + 0xdc]
jmp 0x414235
lea eax, [ebx + 0xdc]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x414253
push 0x3e8
call fcn.005148c0
inc edi
pop ecx
cmp edi, esi
jne 0x414207
cmp edi, esi
jne 0x41427d
push str.NEW_PATCHER_CHANGE_ERROR
lea ecx, [ebp - 0x30]
call fcn.004030bf
mov dword [ebp - 4], esi
mov eax, dword [ebx]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
or dword [ebp - 4], 0xffffffff
push 0
jmp 0x414073
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call fcn.005b79e0
mov eax, dword [0x6f2e50]
add eax, 0xa4
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x4142b0
mov esi, dword [eax + 4]
jmp 0x4142b3
lea esi, [eax + 4]
push 0x685734
mov edi, 0x200
lea eax, [ebp - 0x830]
push edi
push eax
call fcn.004211b0
add esp, 0xc
test esi, esi
je 0x4142ec
cmp word [esi], 0
je 0x4142ec
push esi
push str.__p___s_
mov ecx, edi
lea esi, [ebp - 0x830]
call fcn.00420ec0
pop ecx
pop ecx
call fcn.0040109f
cmp dword [ebx + 0x10c], 8
jb 0x414302
mov ecx, dword [ebx + 0xf8]
jmp 0x414308
lea ecx, [ebx + 0xf8]
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00406ebd
pop ecx
pop ecx
test eax, eax
jne 0x414335
push str.NEW_PATCHER_RUN_ERROR
lea ecx, [ebp - 0x30]
call fcn.004030bf
mov dword [ebp - 4], 6
jmp 0x414267
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4