Function at 0x414434
Capabilities:
Copy file

Disassembly:
mov eax, 0x62e22b
call fcn.0060aa10
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 0x41445e
xor al, al
jmp 0x414751
cmp dword [ebx + 0xec], edi
jne 0x414492
push str.NO_NEW_PATCHER_PATH
lea ecx, [ebp - 0x30]
call fcn.0040345f
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.00403747
jmp 0x414457
lea esi, [ebp + 8]
call fcn.00414b77
test al, al
jne 0x4144c4
push str.CUR_PATCHER_SELF_OPEN_ERROR
lea ecx, [ebp - 0x30]
call fcn.0040345f
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 0x414488
cmp dword [ebx + 0x10c], 8
jb 0x4144d5
mov esi, dword [ebx + 0xf8]
jmp 0x4144db
lea esi, [ebx + 0xf8]
cmp esi, edi
je 0x414541
lea eax, [ebp - 0x430]
test eax, eax
je 0x414541
mov edi, esi
call fcn.00421160
lea edx, [ebp - 0x430]
test eax, eax
jne 0x41451b
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 0x414541
test edi, edi
jne 0x414503
jmp 0x41453b
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 0x414541
test esi, esi
jne 0x414525
xor eax, eax
mov word [ebp - 0x32], ax
lea ecx, [ebp - 0x430]
call fcn.00406a8f
cmp dword [ebx + 0x110], 0
jne 0x4145c7
push str.NEW_PATCHER_RUNNING
push ecx
call fcn.004031f6
pop ecx
mov esi, eax
call fcn.004057ed
push eax
lea ecx, [ebp - 0x14]
call fcn.004034c3
push 2
pop edi
mov dword [ebp - 4], edi
push str.NEW_PATCHER_MANUAL_CHANGING
push ecx
mov dword [ebp - 0x10], 1
call fcn.004031f6
pop ecx
mov esi, eax
call fcn.004057ed
push eax
lea ecx, [ebp + 8]
call fcn.004034c3
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.00539080
add esp, 0x18
cmp eax, edi
jne 0x4145c7
xor esi, esi
inc esi
jmp 0x4145c9
xor esi, esi
mov dword [ebp - 4], 2
test byte [ebp - 0x10], 2
je 0x4145e2
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp + 8]
call fcn.00401017
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x10], 1
je 0x4145f8
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x14]
call fcn.00401017
xor edi, edi
cmp esi, edi
je 0x414617
push str.NEW_PATCHER_CHANGE_ERROR
lea ecx, [ebp - 0x30]
call fcn.0040345f
mov dword [ebp - 4], 4
jmp 0x414476
push 5
pop esi
cmp dword [ebx + 0x10c], 8
jb 0x41462b
mov ecx, dword [ebx + 0xf8]
jmp 0x414631
lea ecx, [ebx + 0xf8]
cmp dword [ebx + 0xf0], 8
jb 0x414642
mov eax, dword [ebx + 0xdc]
jmp 0x414648
lea eax, [ebx + 0xdc]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x414666
push 0x3e8
call fcn.005129b0
inc edi
pop ecx
cmp edi, esi
jne 0x41461a
cmp edi, esi
jne 0x414690
push str.NEW_PATCHER_CHANGE_ERROR
lea ecx, [ebp - 0x30]
call fcn.0040345f
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 0x414486
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call fcn.005b57c0
mov eax, dword [0x6f0d00]
add eax, 0xa4
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x4146c3
mov esi, dword [eax + 4]
jmp 0x4146c6
lea esi, [eax + 4]
push 0x681164
mov edi, 0x200
lea eax, [ebp - 0x830]
push edi
push eax
call fcn.004210f0
add esp, 0xc
test esi, esi
je 0x4146ff
cmp word [esi], 0
je 0x4146ff
push esi
push str.__p___s_
mov ecx, edi
lea esi, [ebp - 0x830]
call fcn.00420e00
pop ecx
pop ecx
call fcn.0040109f
cmp dword [ebx + 0x10c], 8
jb 0x414715
mov ecx, dword [ebx + 0xf8]
jmp 0x41471b
lea ecx, [ebx + 0xf8]
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00407361
pop ecx
pop ecx
test eax, eax
jne 0x414748
push str.NEW_PATCHER_RUN_ERROR
lea ecx, [ebp - 0x30]
call fcn.0040345f
mov dword [ebp - 4], 6
jmp 0x41467a
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