Function at 0x45b350
Capabilities:
Copy file
Delete file

Disassembly:
mov eax, 0x322c
call fcn.0045e1f0
push ebx
push ebp
mov ebp, dword [esp + 0x3238]
push esi
push edi
xor ebx, ebx
push 0x7fe
lea eax, [esp + 0x41e]
push ebx
push eax
mov dword [ebp + 0x24], ebx
mov word [esp + 0x424], bx
call sub.msvcrt.dll_memset
mov edi, dword [esp + 0x3250]
add esp, 0xc
lea esi, [esp + 0x418]
mov eax, edi
call fcn.00450230
mov ecx, esi
push 0x5c
push ecx
call sub.msvcrt.dll_wcsrchr
add esp, 8
cmp eax, ebx
je 0x45b3b1
mov word [eax], bx
push 0x7fe
lea edx, [esp + 0x1026]
push ebx
push edx
mov word [esp + 0x102c], bx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x3ff
push ecx
mov ebx, 0xc0
call fcn.00454510
add esp, 4
push eax
lea eax, [esp + 0x1028]
lea ecx, [esp + 0x420]
call fcn.004500f0
add esp, 8
lea eax, [esp + 0x1020]
call fcn.0044f400
test eax, eax
jne 0x45b437
lea esi, [esp + 0x418]
mov eax, edi
call fcn.00450230
push 0x3ff
push ecx
call fcn.00454510
add esp, 4
push eax
lea eax, [esp + 0x1028]
mov ecx, esi
call fcn.004500f0
add esp, 8
lea eax, [esp + 0x1020]
push eax
push ebp
call fcn.0045b0f0
lea ecx, [esp + 0x54]
call fcn.0044ccf0
xor ebx, ebx
push 0x20e
lea ecx, [esp + 0x20e]
push ebx
push ecx
mov word [esp + 0x214], bx
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push edi
mov esi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x45b4a8
push 0x45f4c8
lea esi, [esp + 0x20c]
call fcn.0044f500
add esp, 4
push ebx
mov edx, esi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x45b4af
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x401
lea eax, [esp + 0xc1d]
push ebx
push eax
mov byte [esp + 0xc24], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0xc18]
mov ecx, esi
call fcn.0044e790
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc18]
mov dword [esp + 0x1c], ebx
call fcn.0042f920
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x45b961
mov dword [esp + 0x14], ebx
mov ebx, 0xbf
call fcn.00454570
mov ecx, eax
lea eax, [esp + 0x18]
lea edi, [esp + 0x14]
call fcn.00431f30
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x45b956
push ebp
call fcn.00438240
add esp, 4
cmp eax, 0x64
jne 0x45b94f
jmp 0x45b540
lea esi, [esp + 0x1820]
call fcn.0045afd0
mov ecx, 1
mov eax, ebp
call fcn.00425c20
mov esi, eax
xor ecx, ecx
mov eax, ebp
call fcn.00425c20
mov edi, eax
mov ecx, 2
mov eax, ebp
call fcn.00425c20
mov dword [esp + 0x14], eax
mov ecx, 3
mov eax, ebp
call fcn.00425c20
mov dword [esp + 0x18], eax
mov ecx, 4
mov eax, ebp
call fcn.00425c20
mov dword [esp + 0x28], eax
mov ecx, 7
mov eax, ebp
call fcn.00420d60
push edx
push eax
lea ebx, [esp + 0x3028]
call fcn.0045b000
add esp, 8
mov eax, 0x3ff
lea ecx, [esp + 0x2020]
mov edx, edi
call fcn.0044e780
mov eax, 0x3ff
lea ecx, [esp + 0x1820]
mov edx, esi
call fcn.0044e780
mov edx, dword [esp + 0x14]
mov eax, 0xff
lea ecx, [esp + 0x2820]
call fcn.0044e780
mov edx, dword [esp + 0x28]
mov eax, 0xff
lea ecx, [esp + 0x2a20]
call fcn.0044e780
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x2e20]
call fcn.0044e760
mov ecx, 5
mov eax, ebp
call fcn.00425c50
mov esi, eax
mov eax, 5
mov ebx, ebp
mov dword [esp + 0x14], esi
call fcn.00428870
mov edi, eax
cmp edi, 0xf
jle 0x45b7f3
movzx eax, byte [esi]
sub eax, 0x76
jne 0x45b65b
movzx eax, byte [esi + 1]
sub eax, 0x31
lea ecx, [esi + 1]
jne 0x45b65b
movzx eax, byte [ecx + 1]
add ecx, 1
sub eax, 0x30
je 0x45b669
test eax, eax
mov ecx, 1
jg 0x45b66b
or ecx, 0xffffffff
jmp 0x45b66b
xor ecx, ecx
xor eax, eax
cmp ecx, eax
jne 0x45b86b
mov ebx, dword [esp + 0x3240]
cmp dword [ebx + 0x24], eax
je 0x45b7f3
mov byte [esp + 0x60], al
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov word [esp + 0x7d], ax
mov byte [esp + 0x7f], al
mov byte [esp + 0x34], al
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov word [esp + 0x51], ax
mov byte [esp + 0x53], al
lea eax, [esp + 0x80]
call fcn.00408430
add ebx, 4
push 0x100
push ebx
lea ebx, [esp + 0x88]
call fcn.00408b10
lea ebx, [edi - 0xf]
add esp, 8
cmp ebx, 0x10
jle 0x45b7f3
lea ecx, [ebx + 0xa]
lea eax, [esp + 0x54]
call fcn.0044cc90
lea eax, [esp + 0x54]
call fcn.0044cc40
lea ecx, [esp + 0x34]
push ecx
push eax
lea edx, [esi + 0xf]
push edx
mov dword [esp + 0x24], eax
add ebx, 0xfffffff0
lea edx, [esi + 3]
push ebx
lea eax, [esp + 0x90]
call fcn.00408ad0
add esp, 0x10
lea esi, [esp + 0x80]
call fcn.00408470
mov ecx, dword [esp + 0x14]
mov eax, 0x10
lea ecx, [edi + ecx - 0x10]
lea edx, [esp + 0x34]
lea ecx, [ecx]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x45b778
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x45b760
test eax, eax
je 0x45b7d5
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x45b7c7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x45b7d5
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x45b7c7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x45b7d5
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x45b7c7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x45b7d5
movzx eax, byte [ecx]
movzx esi, byte [edx]
sub esi, eax
je 0x45b7d5
test esi, esi
mov eax, 1
jg 0x45b7d7
or eax, 0xffffffff
jmp 0x45b7d7
xor eax, eax
test eax, eax
jne 0x45b7ef
mov ecx, dword [esp + 0x18]
mov byte [ecx + edi - 0x1f], al
lea eax, [esp + 0x2c20]
call fcn.0044e760
mov esi, dword [esp + 0x14]
cmp word [esp + 0x2c20], 0
jne 0x45b910
lea edx, [edi - 1]
cmp edx, 0x7e
ja 0x45b910
push 0xff
lea eax, [esp + 0x2c24]
push eax
push edi
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
cmp eax, edx
jle 0x45b910
xor ecx, ecx
cmp eax, edx
mov word [esp + eax*2 + 0x2c20], dx
jle 0x45b910
jmp 0x45b850
cmp word [esp + ecx*2 + 0x2c20], 0x20
jb 0x45b908
add ecx, 1
cmp ecx, eax
jl 0x45b850
jmp 0x45b910
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], esi
call fcn.0045b0d0
cmp dword [esp + 0x24], 0
je 0x45b7f3
mov ebx, dword [esp + 0x20]
cmp ebx, 0xfe
jbe 0x45b8a8
mov ebx, 0xfe
push 0x100
lea ecx, [esp + 0x85]
push 0
push ecx
mov byte [esp + 0x8c], 0
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x30]
add esp, 0xc
push ebx
push edx
lea eax, [esp + 0x88]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x2c20]
lea ecx, [esp + 0x80]
mov byte [esp + ebx + 0x80], 0
call fcn.0044e760
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x45b7f3
mov word [esp + 0x2c20], dx
mov ebx, dword [esp + 0x3244]
mov eax, 0x104
lea edi, [esp + 0x3028]
call fcn.0044f5d0
mov ecx, dword [esp + 0x3240]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0x1820]
push eax
call edx
push ebp
call fcn.00438240
add esp, 4
cmp eax, 0x64
je 0x45b540
mov eax, ebp
call fcn.004313a0
mov eax, dword [esp + 0x1c]
call fcn.0042d020
xor ebx, ebx
cmp word [esp + 0x208], bx
je 0x45b979
lea eax, [esp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x54]
call fcn.0044cce0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x322c
ret 8