Function at 0x466cb0
Capabilities:
Copy file
Create directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a1d9
mov eax, dword fs:[0]
push eax
mov eax, 0x1e44
call fcn.004839d0
mov eax, dword [0x4ab00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x1e4c], esi
mov dword [ebp - 0x1e2c], 0
cmp byte [0x4ab9aa], 0
je 0x466db0
cmp esi, 4
je 0x466d18
cmp esi, 5
jne 0x466db0
push 0x3df
jmp 0x466d1d
push 0x3de
lea eax, [ebp - 0x1e3c]
push eax
call fcn.0046cd70
mov edi, 0x491dd8
mov edx, 1
mov ecx, edi
push 0
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
call fcn.00411390
add esp, 0xc
push dword [ebp - 0x1e34]
call fcn.0046bc3a
add esp, 4
push dword [ebp - 0x1e3c]
call fcn.0046bc3a
add esp, 4
cmp dword [0x4ab9c0], 0
jne 0x466db7
lea eax, [ebp - 0x1e3c]
push 0x3e0
push eax
call fcn.0046cd70
push 0
mov edx, 1
mov eax, dword [eax]
test eax, eax
cmovne edi, eax
mov ecx, edi
call fcn.00411390
add esp, 0xc
push dword [ebp - 0x1e34]
call fcn.0046bc3a
add esp, 4
push dword [ebp - 0x1e3c]
call fcn.0046bc3a
add esp, 4
xor al, al
jmp 0x4674c1
xor eax, eax
mov dword [ebp - 0x1e18], 0
mov dword [ebp - 0x1e14], 7
mov word [ebp - 0x1e28], ax
mov dword [ebp - 4], eax
mov eax, 0x4ab9b0
cmp dword [0x4ab9c4], 8
cmovae eax, dword [0x4ab9b0]
push eax
lea eax, [ebp - 0x1410]
push 0x500
push eax
call fcn.00474910
add esp, 0xc
lea ecx, [ebp - 0x1410]
call fcn.004118b0
test al, al
jne 0x466e1f
push 0
mov ecx, 0x3e1
call fcn.004114c0
jmp 0x46747e
lea eax, [ebp - 0x1410]
cmp esi, 4
jne 0x466e31
push str.IFW_BootWIM_Backup
jmp 0x466e36
push str.IFW_WinRE_Backup
push 0x500
push eax
call fcn.00474974
add esp, 0xc
lea eax, [ebp - 0x1410]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x1410]
call fcn.004118b0
test al, al
jne 0x466e73
push 0
mov ecx, 0x3e4
call fcn.004114c0
jmp 0x46747e
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0xa10]
push str._s_boot.wim
push eax
call fcn.0040a9b0
add esp, 0xc
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0xa10]
push str._swinre.wim
push eax
call fcn.0040a9b0
add esp, 0xc
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0xa10]
push str._sTBWinRE.txt
push eax
call fcn.0040a9b0
add esp, 0xc
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0xa10]
push str._sIFW_BootWIM_Data.
push eax
call fcn.0040a9b0
add esp, 0xc
lea ecx, [ebp - 0xa10]
call fcn.00412840
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0xa10]
push str._sIFW_WinRE_Data.
push eax
call fcn.0040a9b0
add esp, 0xc
lea ecx, [ebp - 0xa10]
call fcn.00412840
cmp esi, 4
jne 0x466f83
cmp dword [0x4ae12c], 8
mov ecx, 0x4ae118
mov eax, 0x4ae070
cmovae ecx, dword [0x4ae118]
cmp dword [0x4ae084], 8
push ecx
cmovae eax, dword [0x4ae070]
push eax
lea eax, [ebp - 0x1e10]
push 0x49b5c8
push eax
call fcn.0040a9b0
lea eax, [ebp - 0x1410]
push eax
push str._s_boot.wim
jmp 0x466fc8
cmp dword [0x4ae210], 8
mov ecx, 0x4ae1fc
mov eax, 0x4ae1e4
cmovae ecx, dword [0x4ae1fc]
cmp dword [0x4ae1f8], 8
push ecx
cmovae eax, dword [0x4ae1e4]
push eax
lea eax, [ebp - 0x1e10]
push 0x492674
push eax
call fcn.0040a9b0
lea eax, [ebp - 0x1410]
push eax
push str._swinre.wim
lea eax, [ebp - 0xa10]
push eax
call fcn.0040a9b0
add esp, 0x1c
test ebx, ebx
je 0x467061
cmp dword [ebx], 0
je 0x467061
push 0x44
call fcn.0046ba01
mov esi, eax
add esp, 4
mov dword [ebp - 0x1e30], esi
lea eax, [ebp - 0x1e3c]
mov byte [ebp - 4], 1
push 0x3e5
push eax
call fcn.0046cd70
add esp, 8
mov byte [ebp - 4], 2
mov ecx, edi
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x1e2c], 1
cmovne ecx, eax
push ecx
mov ecx, esi
call fcn.0040b530
mov esi, eax
mov dword [ebp - 4], 0
push dword [ebp - 0x1e34]
call fcn.0046bc3a
add esp, 4
push dword [ebp - 0x1e3c]
call fcn.0046bc3a
add esp, 4
mov ecx, ebx
push esi
call fcn.0046b6c0
mov dword [ebx + 0x10], 0
push 0
push 0
push ebx
push 0x42e8f0
lea eax, [ebp - 0xa10]
push eax
lea eax, [ebp - 0x1e10]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
lea ecx, [ebp - 0xa10]
mov esi, eax
call fcn.004118b0
test al, al
je 0x4673e7
test esi, esi
je 0x4673e7
push 0x80
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
sub esp, 0x18
lea eax, [ebp - 0x1e10]
mov ecx, esp
push eax
call fcn.00402270
call fcn.00411770
mov esi, eax
mov dword [ebp - 0x1e2c], edx
lea eax, [ebp - 0xa10]
mov ecx, esp
push eax
call fcn.00402270
call fcn.00411770
add esp, 0x18
cmp esi, eax
jne 0x467340
cmp dword [ebp - 0x1e2c], edx
jne 0x467340
cmp byte [0x4ab9ab], 0
je 0x4671c7
test ebx, ebx
je 0x46718b
cmp dword [ebx], 0
je 0x46718b
push 0x44
call fcn.0046ba01
mov esi, eax
add esp, 4
mov dword [ebp - 0x1e30], esi
lea eax, [ebp - 0x1e48]
mov byte [ebp - 4], 6
push 0x3e8
push eax
call fcn.0046cd70
add esp, 8
mov byte [ebp - 4], 7
mov ecx, esi
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x1e2c], 2
cmovne edi, eax
push edi
call fcn.0040b530
mov esi, eax
mov dword [ebp - 4], 0
push dword [ebp - 0x1e40]
call fcn.0046bc3a
add esp, 4
push dword [ebp - 0x1e48]
call fcn.0046bc3a
add esp, 4
mov ecx, ebx
push esi
call fcn.0046b6c0
mov dword [ebx + 0x10], 0
push 0
push ebx
lea edx, [ebp - 0xa10]
lea ecx, [ebp - 0x1e10]
call fcn.004120c0
add esp, 8
test al, al
jne 0x4671c7
push 0
mov ecx, 0x3e9
call fcn.004114c0
add esp, 4
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x467481
mov esi, dword [ebp - 0x1e4c]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp esi, 4
jne 0x46723e
cmp dword [0x4ae12c], 8
mov ecx, 0x4ae118
mov eax, 0x4ae070
cmovae ecx, dword [0x4ae118]
cmp dword [0x4ae084], 8
push ecx
cmovae eax, dword [0x4ae070]
push eax
lea eax, [ebp - 0x1e10]
push str._s_sTBWinRE.txt
push eax
call fcn.0040a9b0
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0xa10]
push str._sTBWinRE.txt
push eax
call fcn.0040a9b0
add esp, 0x1c
lea eax, [ebp - 0xa10]
push 0
push eax
lea eax, [ebp - 0x1e10]
push eax
call edi
push 0
mov ecx, 0x3ea
call fcn.004114c0
add esp, 4
cmp dword [0x4adec0], 6
jg 0x467339
jne 0x467269
cmp dword [0x4adec4], 2
jge 0x467339
cmp esi, 4
jne 0x4672c4
cmp dword [0x4ae12c], 8
mov ecx, 0x4ae118
mov eax, 0x4ae070
cmovae ecx, dword [0x4ae118]
cmp dword [0x4ae084], 8
push ecx
cmovae eax, dword [0x4ae070]
push eax
lea eax, [ebp - 0x1e10]
push str._s_sIFW_BootWIM_Data
push eax
call fcn.0040a9b0
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0xa10]
push str._sIFW_BootWIM_Data
push eax
call fcn.0040a9b0
add esp, 0x1c
jmp 0x467307
cmp dword [0x4ae1f8], 8
mov eax, 0x4ae1e4
cmovae eax, dword [0x4ae1e4]
push eax
lea eax, [ebp - 0x1e10]
push str._sIFW_WinRE_Data
push eax
call fcn.0040a9b0
add esp, 0xc
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0xa10]
push str._sIFW_WinRE_Data
push eax
call fcn.0040a9b0
add esp, 0xc
push 0
lea eax, [ebp - 0xa10]
push eax
lea eax, [ebp - 0x1e10]
push eax
call edi
lea ecx, [ebp - 0xa10]
call fcn.004118b0
test al, al
jne 0x467339
push 0
mov ecx, 0x3eb
call fcn.004114c0
jmp 0x46747e
mov bl, 1
jmp 0x467483
lea eax, [ebp - 0x1e48]
push 0x3e6
push eax
call fcn.0046cd70
add esp, 8
mov byte [ebp - 4], 5
mov eax, dword [eax]
test eax, eax
cmovne edi, eax
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x467364
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x1e28]
call fcn.00402430
mov byte [ebp - 4], 0
push dword [ebp - 0x1e40]
call fcn.0046bc3a
add esp, 4
push dword [ebp - 0x1e48]
call fcn.0046bc3a
add esp, 4
lea ecx, [ebp - 0x1e28]
push 6
push str.__0x2_
call fcn.0040a760
cmp dword [ebp - 0x1e14], 8
lea ecx, [ebp - 0x1e28]
push 0
cmovae ecx, dword [ebp - 0x1e28]
mov edx, 1
call fcn.00411390
add esp, 4
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x467481
lea eax, [ebp - 0x1e48]
push 0x3e6
push eax
call fcn.0046cd70
add esp, 8
mov byte [ebp - 4], 4
mov eax, dword [eax]
test eax, eax
cmovne edi, eax
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x467410
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x1e28]
call fcn.00402430
mov byte [ebp - 4], 0
push dword [ebp - 0x1e40]
call fcn.0046bc3a
add esp, 4
push dword [ebp - 0x1e48]
call fcn.0046bc3a
add esp, 4
lea ecx, [ebp - 0x1e28]
push 6
push str.__0x1_
call fcn.0040a760
cmp dword [ebp - 0x1e14], 8
lea ecx, [ebp - 0x1e28]
push 0
cmovae ecx, dword [ebp - 0x1e28]
mov edx, 1
call fcn.00411390
add esp, 4
xor bl, bl
mov edx, dword [ebp - 0x1e14]
cmp edx, 8
jb 0x4674bf
mov ecx, dword [ebp - 0x1e28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4674b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4674dd
push edx
push ecx
call fcn.0046ba31
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b9f0
mov esp, ebp
pop ebp
ret
call fcn.00471513
int3