Function at 0x414166
Capabilities:
Copy file

Disassembly:
mov eax, 0x56ca5e
call fcn.0055a6a0
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 0x414190
xor al, al
jmp 0x414483
cmp dword [ebx + 0xec], edi
jne 0x4141c4
push str.NO_NEW_PATCHER_PATH
lea ecx, [ebp - 0x30]
call fcn.004027e7
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.00403580
jmp 0x414189
lea esi, [ebp + 8]
call fcn.004148a9
test al, al
jne 0x4141f6
push str.CUR_PATCHER_SELF_OPEN_ERROR
lea ecx, [ebp - 0x30]
call fcn.004027e7
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 0x4141ba
cmp dword [ebx + 0x10c], 8
jb 0x414207
mov esi, dword [ebx + 0xf8]
jmp 0x41420d
lea esi, [ebx + 0xf8]
cmp esi, edi
je 0x414273
lea eax, [ebp - 0x430]
test eax, eax
je 0x414273
mov edi, esi
call fcn.0041f0b0
lea edx, [ebp - 0x430]
test eax, eax
jne 0x41424d
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 0x414273
test edi, edi
jne 0x414235
jmp 0x41426d
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 0x414273
test esi, esi
jne 0x414257
xor eax, eax
mov word [ebp - 0x32], ax
lea ecx, [ebp - 0x430]
call fcn.00406cc2
cmp dword [ebx + 0x110], 0
jne 0x4142f9
push str.NEW_PATCHER_RUNNING
push ecx
call fcn.004032e1
pop ecx
mov esi, eax
call fcn.0040582a
push eax
lea ecx, [ebp - 0x14]
call fcn.00403311
push 2
pop edi
mov dword [ebp - 4], edi
push str.NEW_PATCHER_MANUAL_CHANGING
push ecx
mov dword [ebp - 0x10], 1
call fcn.004032e1
pop ecx
mov esi, eax
call fcn.0040582a
push eax
lea ecx, [ebp + 8]
call fcn.00403311
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.00489b40
add esp, 0x18
cmp eax, edi
jne 0x4142f9
xor esi, esi
inc esi
jmp 0x4142fb
xor esi, esi
mov dword [ebp - 4], 2
test byte [ebp - 0x10], 2
je 0x414314
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp + 8]
call fcn.00401017
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x10], 1
je 0x41432a
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x14]
call fcn.00401017
xor edi, edi
cmp esi, edi
je 0x414349
push str.NEW_PATCHER_CHANGE_ERROR
lea ecx, [ebp - 0x30]
call fcn.004027e7
mov dword [ebp - 4], 4
jmp 0x4141a8
push 5
pop esi
cmp dword [ebx + 0x10c], 8
jb 0x41435d
mov ecx, dword [ebx + 0xf8]
jmp 0x414363
lea ecx, [ebx + 0xf8]
cmp dword [ebx + 0xf0], 8
jb 0x414374
mov eax, dword [ebx + 0xdc]
jmp 0x41437a
lea eax, [ebx + 0xdc]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x414398
push 0x3e8
call fcn.00464740
inc edi
pop ecx
cmp edi, esi
jne 0x41434c
cmp edi, esi
jne 0x4143c2
push str.NEW_PATCHER_CHANGE_ERROR
lea ecx, [ebp - 0x30]
call fcn.004027e7
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 0x4141b8
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call fcn.00507370
mov eax, dword [0x5f9648]
add eax, 0xa4
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x4143f5
mov esi, dword [eax + 4]
jmp 0x4143f8
lea esi, [eax + 4]
push 0x5bd96c
mov edi, 0x200
lea eax, [ebp - 0x830]
push edi
push eax
call fcn.0041f040
add esp, 0xc
test esi, esi
je 0x414431
cmp word [esi], 0
je 0x414431
push esi
push str.__p___s_
mov ecx, edi
lea esi, [ebp - 0x830]
call fcn.0041ed50
pop ecx
pop ecx
call fcn.00401136
cmp dword [ebx + 0x10c], 8
jb 0x414447
mov ecx, dword [ebx + 0xf8]
jmp 0x41444d
lea ecx, [ebx + 0xf8]
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.0040748e
pop ecx
pop ecx
test eax, eax
jne 0x41447a
push str.NEW_PATCHER_RUN_ERROR
lea ecx, [ebp - 0x30]
call fcn.004027e7
mov dword [ebp - 4], 6
jmp 0x4143ac
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