Function at 0x603753
Capabilities:
Copy file

Disassembly:
mov eax, 0x61f098
call fcn.0060ebd0
sub esp, 0x82c
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 0x60377d
xor al, al
jmp 0x603a66
cmp dword [ebx + 0xec], edi
jne 0x6037b1
push str.NO_NEW_PATCHER_PATH
lea ecx, [ebp - 0x34]
call fcn.004018f5
mov dword [ebp - 4], edi
mov eax, dword [ebx]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x34]
call fcn.00401c85
jmp 0x603776
lea esi, [ebp + 8]
call fcn.00602be9
test al, al
jne 0x6037e3
push str.CUR_PATCHER_SELF_OPEN_ERROR
lea ecx, [ebp - 0x34]
call fcn.004018f5
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov eax, dword [ebx]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
or dword [ebp - 4], 0xffffffff
push edi
push esi
jmp 0x6037a7
cmp dword [ebx + 0x10c], 8
jb 0x6037f4
mov esi, dword [ebx + 0xf8]
jmp 0x6037fa
lea esi, [ebx + 0xf8]
cmp esi, edi
je 0x603860
lea eax, [ebp - 0x438]
test eax, eax
je 0x603860
mov edi, esi
call fcn.004137d0
lea edx, [ebp - 0x438]
test eax, eax
jne 0x60383a
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 0x603860
test edi, edi
jne 0x603822
jmp 0x60385a
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 0x603860
test esi, esi
jne 0x603844
xor eax, eax
mov word [ebp - 0x3a], ax
lea ecx, [ebp - 0x438]
call fcn.0060b70b
mov eax, dword [ebp + 8]
cmp eax, dword [ebx + 0x110]
je 0x6038e7
push str.NEW_PATCHER_RUNNING
push ecx
call fcn.0040171c
pop ecx
mov esi, eax
call fcn.0060d9f6
push eax
lea ecx, [ebp - 0x14]
call fcn.00401327
push 2
pop edi
mov dword [ebp - 4], edi
push str.NEW_PATCHER_MANUAL_CHANGING
push ecx
mov dword [ebp - 0x10], 1
call fcn.0040171c
pop ecx
mov esi, eax
call fcn.0060d9f6
push eax
lea ecx, [ebp - 0x18]
call fcn.00401327
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 - 0x18]
push eax
call fcn.0052fac0
add esp, 0x18
mov byte [ebp + 0xb], 1
cmp eax, edi
je 0x6038eb
mov byte [ebp + 0xb], 0
mov dword [ebp - 4], 2
test byte [ebp - 0x10], 2
je 0x603904
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x18]
call fcn.00401017
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x10], 1
je 0x60391a
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x14]
call fcn.00401017
cmp byte [ebp + 0xb], 0
je 0x60394a
push str.NEW_PATCHER_CHANGE_ERROR
lea ecx, [ebp - 0x34]
call fcn.004018f5
mov dword [ebp - 4], 4
mov eax, dword [ebx]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
or dword [ebp - 4], 0xffffffff
push 0
jmp 0x6037a5
push 5
xor edi, edi
pop esi
cmp dword [ebx + 0x10c], 8
jb 0x603960
mov ecx, dword [ebx + 0xf8]
jmp 0x603966
lea ecx, [ebx + 0xf8]
cmp dword [ebx + 0xf0], 8
jb 0x603977
mov eax, dword [ebx + 0xdc]
jmp 0x60397d
lea eax, [ebx + 0xdc]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x60399b
push 0x3e8
call fcn.00502ac0
inc edi
pop ecx
cmp edi, esi
jne 0x60394f
cmp edi, esi
jne 0x6039b1
push str.NEW_PATCHER_CHANGE_ERROR
lea ecx, [ebp - 0x34]
call fcn.004018f5
mov dword [ebp - 4], esi
jmp 0x603934
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x838], ax
lea eax, [ebp - 0x836]
push eax
call fcn.005a90b0
mov eax, dword [0x6f9ea4]
add esp, 0xc
call fcn.0060c4bc
push 0x686344
mov esi, eax
mov edi, 0x200
lea eax, [ebp - 0x838]
push edi
push eax
call fcn.00413760
add esp, 0xc
test esi, esi
je 0x603a14
cmp word [esi], 0
je 0x603a14
push esi
push str.__p___s_
mov ecx, edi
lea esi, [ebp - 0x838]
call fcn.00413470
pop ecx
pop ecx
call fcn.0060c562
cmp dword [ebx + 0x10c], 8
jb 0x603a2a
mov ecx, dword [ebx + 0xf8]
jmp 0x603a30
lea ecx, [ebx + 0xf8]
lea eax, [ebp - 0x838]
push 0
push eax
call fcn.0060bab9
pop ecx
pop ecx
test eax, eax
jne 0x603a5d
push str.NEW_PATCHER_RUN_ERROR
lea ecx, [ebp - 0x34]
call fcn.004018f5
mov dword [ebp - 4], 6
jmp 0x603934
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