Function at 0x48add0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5711be
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1d70
call fcn.00529480
mov eax, dword [0x5c1334]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ebp + 0xc]
mov ecx, edx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1cbc], ebx
mov dword [ebp - 0x1cd0], ebx
mov dword [ebp - 0x1c8c], 0
lea esi, [ecx + 1]
mov dword [ebp - 0x1c88], 0xf
mov byte [ebp - 0x1c9c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48ae38
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x1c9c]
call fcn.0043f0e0
push 0x1400
lea eax, [ebp - 0x1c54]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0x1c88], 0x10
lea ecx, [ebp + 0x10]
push ecx
lea eax, [ebp - 0x1c9c]
cmovae eax, dword [ebp - 0x1c9c]
or edx, 0xffffffff
push ecx
push eax
lea ecx, [ebp - 0x1c54]
call fcn.00470330
mov dword [ebp - 4], 0
add esp, 0xc
mov byte [ebp - 4], 3
cmp byte [ebx + 0x54], 0
je 0x48aeae
mov ecx, ebx
call fcn.0048a110
cmp dword [ebx + 0x38], 8
lea esi, [ebx + 0x24]
mov eax, esi
jb 0x48aebb
mov eax, dword [esi]
push eax
call fcn.00487990
cmp eax, dword [ebx + 0x20]
jbe 0x48b51a
cmp byte [ebx + 0x55], 0
je 0x48b31e
cmp dword [esi + 0x14], 8
jb 0x48aedc
mov esi, dword [esi]
lea ecx, [ebp - 0x854]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x48aee4
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
xor eax, eax
mov dword [ebp - 0x1c5c], 0
mov dword [ebp - 0x1c58], 7
mov word [ebp - 0x1c6c], ax
lea ecx, [ebp - 0x854]
mov byte [ebp - 4], 4
lea ebx, [eax + 1]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48af30
sub ecx, edx
lea eax, [ebp - 0x854]
sar ecx, 1
cmp ecx, 7
ja 0x48af70
lea esi, [ecx + ecx]
mov dword [ebp - 0x1c5c], ecx
push esi
push eax
lea eax, [ebp - 0x1c6c]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x1c6c], ax
jmp 0x48af8b
push ecx
push eax
mov byte [ebp - 0x1cb8], 0
push dword [ebp - 0x1cb8]
push ecx
lea ecx, [ebp - 0x1c6c]
call fcn.0043df50
mov edx, dword [ebp - 0x1c58]
mov eax, edx
mov ecx, dword [ebp - 0x1c5c]
sub eax, ecx
cmp eax, 1
jb 0x48afd4
cmp edx, 8
lea esi, [ebp - 0x1c6c]
push 2
cmovae esi, dword [ebp - 0x1c6c]
lea edi, [ecx + 1]
push 0x5988ec
mov dword [ebp - 0x1c5c], edi
lea eax, [esi + ecx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x48aff5
push 1
push 0x5988ec
mov byte [ebp - 0x1cb8], 0
lea ecx, [ebp - 0x1c6c]
push dword [ebp - 0x1cb8]
push 1
call fcn.0043df50
push 1
lea ecx, [ebp - 0x1c6c]
call fcn.004873e0
mov esi, eax
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 4
jb 0x48b03b
lea edi, [ecx + 4]
mov dword [esi + 0x10], edi
cmp edx, 8
jb 0x48b020
mov esi, dword [esi]
push 8
lea eax, [esi + ecx*2]
push str..log
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x48b060
push 4
push str..log
mov byte [ebp - 0x1cb8], 0
mov ecx, esi
push dword [ebp - 0x1cb8]
push 4
call fcn.0043df50
nop dword [eax + eax]
cmp dword [ebp - 0x1c58], 8
lea eax, [ebp - 0x1c6c]
cmovae eax, dword [ebp - 0x1c6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48b2a7
push 0
inc ebx
lea ecx, [ebp - 0x1c6c]
push 0x59506c
mov dword [ebp - 0x1cb8], ebx
call fcn.0043e6f0
lea ecx, [ebp - 0x854]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48b0a5
mov ebx, dword [ebp - 0x1c58]
sub ecx, edx
mov edx, dword [ebp - 0x1c5c]
mov eax, ebx
sar ecx, 1
sub eax, edx
cmp ecx, eax
ja 0x48b100
cmp ebx, 8
lea eax, [ecx + ecx]
push eax
lea esi, [ebp - 0x1c6c]
cmovae esi, dword [ebp - 0x1c6c]
lea eax, [ebp - 0x854]
push eax
lea edi, [ecx + edx]
mov dword [ebp - 0x1c5c], edi
lea eax, [esi + edx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x48b121
push ecx
lea eax, [ebp - 0x854]
mov byte [ebp - 0x1cc0], 0
push eax
push dword [ebp - 0x1cc0]
push ecx
lea ecx, [ebp - 0x1c6c]
call fcn.0043df50
mov edx, dword [ebp - 0x1c58]
mov eax, edx
mov ecx, dword [ebp - 0x1c5c]
sub eax, ecx
cmp eax, 1
jb 0x48b16a
cmp edx, 8
lea esi, [ebp - 0x1c6c]
push 2
cmovae esi, dword [ebp - 0x1c6c]
lea edi, [ecx + 1]
push 0x5988ec
mov dword [ebp - 0x1c5c], edi
lea eax, [esi + ecx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x48b18b
push 1
push 0x5988ec
mov byte [ebp - 0x1cc4], 0
lea ecx, [ebp - 0x1c6c]
push dword [ebp - 0x1cc4]
push 1
call fcn.0043df50
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0xa
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x1cb8]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
lea ecx, [ebp - 0x54]
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48b1b3
mov ebx, dword [ebp - 0x1c58]
sub ecx, edx
mov edx, dword [ebp - 0x1c5c]
mov eax, ebx
sar ecx, 1
sub eax, edx
cmp ecx, eax
ja 0x48b20b
cmp ebx, 8
lea eax, [ecx + ecx]
push eax
lea esi, [ebp - 0x1c6c]
cmovae esi, dword [ebp - 0x1c6c]
lea eax, [ebp - 0x54]
push eax
lea edi, [ecx + edx]
mov dword [ebp - 0x1c5c], edi
lea eax, [esi + edx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x48b229
push ecx
lea eax, [ebp - 0x54]
mov byte [ebp - 0x1cc8], 0
push eax
push dword [ebp - 0x1cc8]
push ecx
lea ecx, [ebp - 0x1c6c]
call fcn.0043df50
mov edx, dword [ebp - 0x1c58]
mov eax, edx
mov ecx, dword [ebp - 0x1c5c]
sub eax, ecx
cmp eax, 4
jb 0x48b27b
cmp edx, 8
lea esi, [ebp - 0x1c6c]
push 8
cmovae esi, dword [ebp - 0x1c6c]
lea edi, [ecx + 4]
push str..log
mov dword [ebp - 0x1c5c], edi
lea eax, [esi + ecx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
mov ebx, dword [ebp - 0x1cb8]
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x48b060
push 4
push str..log
mov byte [ebp - 0x1ccc], 0
lea ecx, [ebp - 0x1c6c]
push dword [ebp - 0x1ccc]
push 4
call fcn.0043df50
mov ebx, dword [ebp - 0x1cb8]
jmp 0x48b060
mov ebx, dword [ebp - 0x1cbc]
lea eax, [ebp - 0x1c6c]
cmp dword [ebp - 0x1c58], 8
lea esi, [ebx + 0x24]
mov ecx, esi
cmovae eax, dword [ebp - 0x1c6c]
cmp dword [esi + 0x14], 8
jb 0x48b2ce
mov ecx, dword [esi]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1c58]
cmp edx, 8
jb 0x48b31e
mov ecx, dword [ebp - 0x1c6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48b314
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48b314
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.005283f2
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x48b326
mov esi, dword [esi]
sub esp, 8
lea ecx, [ebp - 0x1d80]
push 0x10
push esi
call fcn.0048b820
sub esp, 0x18
mov byte [ebp - 4], 5
mov eax, esp
lea ecx, [ebp - 0x1d80]
xorps xmm0, xmm0
mov dword [eax], 2
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
movq qword [eax + 0x10], xmm0
call fcn.0048ba40
lea ecx, [ebp - 0x1c54]
mov dword [ebp - 0x1c5c], 0
mov dword [ebp - 0x1c58], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x1c6c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48b392
sub ecx, edx
lea eax, [ebp - 0x1c54]
push ecx
push eax
lea ecx, [ebp - 0x1c6c]
call fcn.0043f0e0
lea edx, [ebp - 0x1c6c]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1c84]
call fcn.00487680
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x1c58]
cmp edx, 0x10
jb 0x48b403
mov ecx, dword [ebp - 0x1c6c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48b3f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48b3f9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.005283f2
add esp, 8
lea eax, [ebp - 0x1cb4]
mov dword [ebp - 0x1c5c], 0
push eax
mov dword [ebp - 0x1c58], 0xf
mov byte [ebp - 0x1c6c], 0
call fcn.00487b80
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x48b439
mov eax, dword [eax]
push ecx
mov edx, eax
lea ecx, [ebp - 0x1d80]
call fcn.00439b70
add esp, 4
lea edx, [ebp - 0x1c84]
cmp dword [ebp - 0x1c70], 0x10
mov ecx, eax
cmovae edx, dword [ebp - 0x1c84]
push dword [ebp - 0x1c74]
call fcn.00439b70
add esp, 4
push eax
call fcn.0046e430
mov edx, dword [ebp - 0x1ca0]
add esp, 4
cmp edx, 0x10
jb 0x48b4b3
mov ecx, dword [ebp - 0x1cb4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48b4a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48b4a9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.005283f2
add esp, 8
mov edx, dword [ebp - 0x1c70]
cmp edx, 0x10
jb 0x48b4ef
mov ecx, dword [ebp - 0x1c84]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48b4e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48b4e5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.005283f2
add esp, 8
lea ecx, [ebp - 0x1d80]
mov dword [ebp - 0x1c74], 0
mov dword [ebp - 0x1c70], 0xf
mov byte [ebp - 0x1c84], 0
call fcn.004336e0
jmp 0x48b75f
cmp dword [esi + 0x14], 8
jb 0x48b522
mov esi, dword [esi]
sub esp, 8
lea ecx, [ebp - 0x1d80]
push 8
push esi
call fcn.0048b820
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov eax, esp
lea ecx, [ebp - 0x1d80]
xorps xmm0, xmm0
mov dword [eax], 2
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
movq qword [eax + 0x10], xmm0
call fcn.0048ba40
lea ecx, [ebp - 0x1c54]
mov dword [ebp - 0x1c74], 0
mov dword [ebp - 0x1c70], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x1c84], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48b590
sub ecx, edx
lea eax, [ebp - 0x1c54]
push ecx
push eax
lea ecx, [ebp - 0x1c84]
call fcn.0043f0e0
lea edx, [ebp - 0x1c84]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1c6c]
call fcn.00487680
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x1c70]
cmp edx, 0x10
jb 0x48b601
mov ecx, dword [ebp - 0x1c84]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48b5f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48b5f7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.005283f2
add esp, 8
lea eax, [ebp - 0x1cb4]
mov dword [ebp - 0x1c74], 0
push eax
mov dword [ebp - 0x1c70], 0xf
mov byte [ebp - 0x1c84], 0
call fcn.00487b80
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x48b637
mov eax, dword [eax]
push ecx
mov edx, eax
lea ecx, [ebp - 0x1d80]
call fcn.00439b70
add esp, 4
lea edx, [ebp - 0x1c6c]
cmp dword [ebp - 0x1c58], 0x10
mov ecx, eax
cmovae edx, dword [ebp - 0x1c6c]
push dword [ebp - 0x1c5c]
call fcn.00439b70
add esp, 4
push eax
call fcn.0046e430
mov byte [ebp - 4], 0xd
add esp, 4
mov edx, dword [ebp - 0x1ca0]
cmp edx, 0x10
jb 0x48b6b5
mov ecx, dword [ebp - 0x1cb4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48b6ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48b6ab
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.005283f2
add esp, 8
lea ecx, [ebp - 0x1d7c]
call fcn.00438050
test eax, eax
jne 0x48b6ef
mov eax, dword [ebp - 0x1d80]
lea ecx, [ebp - 0x1d80]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.0043c9b0
mov edx, dword [ebp - 0x1c58]
cmp edx, 0x10
jb 0x48b72b
mov ecx, dword [ebp - 0x1c6c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48b721
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48b721
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.005283f2
add esp, 8
lea ecx, [ebp - 0x1d80]
mov dword [ebp - 0x1c5c], 0
mov dword [ebp - 0x1c58], 0xf
mov byte [ebp - 0x1c6c], 0
call fcn.004336e0
jmp 0x48b75f
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x1c88]
cmp edx, 0x10
jb 0x48b7a2
mov ecx, dword [ebp - 0x1c9c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48b798
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48b798
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.005283f2
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret