Function at 0x401b80
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454a5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x840
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x40]
push eax
call fcn.004017d0
add esp, 4
test al, al
je 0x401c20
mov eax, dword [0x466728]
cmp eax, ebx
jne 0x401bef
push 0x50
call fcn.004085ef
add esp, 4
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x401be5
push eax
call fcn.004067f0
jmp 0x401be7
xor eax, eax
mov byte [ebp - 4], bl
mov dword [0x466728], eax
push str.BlackDesertPatcher32.pae.temp
mov dword [ebp - 0x48], eax
push eax
mov eax, str.BlackDesertPatcher32.pae
call fcn.00406870
test al, al
jne 0x401c42
mov ecx, dword [0x4666a8]
mov edx, dword [0x466530]
push ebx
push str.Launcher
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 4], 0xffffffff
lea ebx, [ebp - 0x40]
call fcn.00404a60
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x44], ebx
je 0x401d2e
lea esp, [esp]
xor eax, eax
push ebx
mov word [ebp - 0x2c], ax
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.004061e0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
mov edx, dword [ebp - 0x2c]
jae 0x401c9d
lea edx, [ebp - 0x2c]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401ca2
sub eax, edi
sar eax, 1
mov ecx, ebx
je 0x401cca
cmp word [edx + ecx*2], 0x5c
jne 0x401cc5
mov edi, 0x2f
mov word [edx + ecx*2], di
inc ecx
cmp ecx, eax
jb 0x401cb5
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x401cd8
mov ecx, dword [esi]
jmp 0x401cda
mov ecx, esi
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x401ce5
lea eax, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00406870
test al, al
je 0x401e26
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], edi
jb 0x401d0b
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00408104
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x44]
inc eax
add esi, 0x1c
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x44], eax
cmp eax, dword [ebp - 0x30]
jb 0x401c70
push str.BlackDesertPatcher32.pae
call fcn.00401460
add esp, 4
push str.BlackDesertPatcher32.pae
push str.BlackDesertPatcher32.pae.temp
call fcn.004014f0
mov edi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
add esp, 8
test al, al
jne 0x401e69
xor esi, esi
lea ecx, [ecx]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7fe
lea eax, [ebp - 0x846]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x848], dx
call fcn.00411290
add esp, 0xc
push str.BlackDesertPatcher32.pae
lea ecx, [ebp - 0x848]
push 0x400
push ecx
call fcn.00408249
lea eax, [ebp - 0x848]
add esp, 0xc
lea edx, [eax + 2]
jmp 0x401db0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401db0
sub eax, edx
sar eax, 1
xor edx, edx
mov word [ebp + eax*2 - 0x846], dx
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x848]
mov ecx, 0x614
push edx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x1c], cx
call edi
push str.BlackDesertPatcher32.pae
push str.BlackDesertPatcher32.pae.temp
call fcn.004014f0
add esp, 8
cmp al, 1
je 0x401e69
inc esi
cmp esi, 5
jl 0x401d60
mov eax, dword [0x4666ac]
mov ecx, dword [0x466530]
push ebx
push str.Launcher
push eax
push ecx
jmp 0x401c1a
mov ecx, dword [0x4666a8]
mov edx, dword [0x466530]
push ebx
push str.Launcher_ad
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], edi
jb 0x401e54
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00408104
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
jmp 0x401c20
push str.patcher_files_version
push str.patcher_files_version_tmp
call fcn.004014f0
add esp, 8
test al, al
jne 0x401f33
xor esi, esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7fe
lea eax, [ebp - 0x846]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x848], dx
call fcn.00411290
add esp, 0xc
push str.patcher_files_version
lea ecx, [ebp - 0x848]
push 0x400
push ecx
call fcn.00408249
lea eax, [ebp - 0x848]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401ed0
sub eax, edx
sar eax, 1
xor edx, edx
mov word [ebp + eax*2 - 0x846], dx
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x848]
mov ecx, 0x614
push edx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x1c], cx
call edi
push str.patcher_files_version
push str.patcher_files_version_tmp
call fcn.004014f0
add esp, 8
cmp al, 1
je 0x401f33
inc esi
cmp esi, 5
jl 0x401e85
jmp 0x401e0e
mov dword [ebp - 4], 0xffffffff
lea ebx, [ebp - 0x40]
call fcn.00404a60
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret