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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a299
mov eax, dword fs:[0]
push eax
mov eax, 0x284c
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 - 0x2834], esi
mov dword [ebp - 0x2830], 0
cmp byte [0x4ab9aa], 0
je 0x4675f0
cmp esi, 4
je 0x467558
cmp esi, 5
jne 0x4675f0
push 0x3ed
jmp 0x46755d
push 0x3ec
lea eax, [ebp - 0x2844]
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 - 0x283c]
call fcn.0046bc3a
add esp, 4
push dword [ebp - 0x2844]
call fcn.0046bc3a
add esp, 4
cmp dword [0x4ab9c0], 0
jne 0x4675f7
lea eax, [ebp - 0x2844]
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 - 0x283c]
call fcn.0046bc3a
add esp, 4
push dword [ebp - 0x2844]
call fcn.0046bc3a
add esp, 4
xor al, al
jmp 0x467fbe
xor eax, eax
mov dword [ebp - 0x2818], 0
mov dword [ebp - 0x2814], 7
mov word [ebp - 0x2828], 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 0x467662
push 0
mov ecx, 0x3e1
call fcn.004114c0
add esp, 4
jmp 0x467f7e
lea eax, [ebp - 0x1410]
cmp esi, 4
jne 0x467674
push str.IFW_BootWIM_Backup
jmp 0x467679
push str.IFW_WinRE_Backup
push 0x500
push eax
call fcn.00474974
add esp, 0xc
lea ecx, [ebp - 0x1410]
call fcn.004118b0
test al, al
jne 0x4676aa
push 0
mov ecx, 0x3ee
call fcn.004114c0
add esp, 4
jmp 0x467f7e
cmp esi, 4
jne 0x46781e
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 - 0xa10]
push 0x492674
push eax
call fcn.0040a9b0
add esp, 0x10
lea eax, [ebp - 0xa10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
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 - 0xa10]
push 0x49b5c8
push eax
call fcn.0040a9b0
add esp, 0x10
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
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 - 0xa10]
push str._s_sTBWinRE.txt
push eax
call fcn.0040a9b0
add esp, 0x10
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
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 - 0xa10]
push str._s_sIFW_BootWIM_Data.
push eax
call fcn.0040a9b0
lea ecx, [ebp - 0xa10]
call fcn.00412840
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0x1e10]
push str._s_boot.wim
push eax
call fcn.0040a9b0
add esp, 0x1c
mov ecx, 0x4ae118
cmp dword [0x4ae12c], 8
mov eax, 0x4ae070
cmovae ecx, dword [0x4ae118]
cmp dword [0x4ae084], 8
push ecx
cmovae eax, dword [0x4ae070]
push eax
push 0x49b5c8
jmp 0x467899
cmp dword [0x4ae1f8], 8
mov eax, 0x4ae1e4
cmovae eax, dword [0x4ae1e4]
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
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0x1e10]
push str._swinre.wim
push eax
call fcn.0040a9b0
add esp, 0xc
mov ecx, 0x4ae1fc
cmp dword [0x4ae210], 8
mov eax, 0x4ae1e4
cmovae ecx, dword [0x4ae1fc]
cmp dword [0x4ae1f8], 8
push ecx
cmovae eax, dword [0x4ae1e4]
push eax
push 0x492674
lea eax, [ebp - 0xa10]
push eax
call fcn.0040a9b0
add esp, 0x10
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0x2810]
push str._s_backup_winre.wim
push eax
call fcn.0040a9b0
add esp, 0xc
cmp esi, 5
jne 0x467a21
sub esp, 0x18
lea eax, [ebp - 0xa10]
mov ecx, esp
push eax
call fcn.00402270
call fcn.00411770
mov dword [ebp - 0x284c], eax
mov ecx, esp
lea eax, [ebp - 0x1e10]
mov dword [ebp - 0x2830], edx
push eax
call fcn.00402270
call fcn.00411770
mov ecx, esp
mov dword [ebp - 0x2848], eax
push 0x4ae1e4
mov dword [ebp - 0x282c], edx
call fcn.004022e0
call fcn.00411810
add esp, 0x18
mov dword [ebp - 0x2838], edx
cmp dword [ebp - 0x2830], 0
mov ecx, eax
jl 0x467c40
jg 0x467945
cmp dword [ebp - 0x284c], 0
jb 0x467c40
mov edx, dword [ebp - 0x282c]
test edx, edx
jl 0x467c40
mov eax, dword [ebp - 0x2848]
jg 0x467963
test eax, eax
jb 0x467c40
cmp dword [ebp - 0x2838], 0
jl 0x467c40
jg 0x46797a
test ecx, ecx
jb 0x467c40
add ecx, dword [ebp - 0x284c]
mov esi, dword [ebp - 0x2830]
adc dword [ebp - 0x2838], esi
add eax, 0x100000
mov esi, dword [ebp - 0x2834]
adc edx, 0
cmp dword [ebp - 0x2838], edx
jl 0x467c2c
jg 0x4679b0
cmp ecx, eax
jbe 0x467c2c
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 - 0xa10]
push 0x492674
push eax
call fcn.0040a9b0
add esp, 0x10
lea eax, [ebp - 0xa10]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea eax, [ebp - 0x2810]
push eax
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
je 0x467ab5
cmp dword [ebx], 0
je 0x467ab5
push 0x44
call fcn.0046ba01
mov esi, eax
add esp, 4
mov dword [ebp - 0x282c], esi
lea eax, [ebp - 0x2844]
mov byte [ebp - 4], 1
push 0x3ef
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 - 0x2830], 1
cmovne ecx, eax
push ecx
mov ecx, esi
call fcn.0040b530
mov esi, eax
mov dword [ebp - 4], 0
push dword [ebp - 0x283c]
call fcn.0046bc3a
add esp, 4
push dword [ebp - 0x2844]
call fcn.0046bc3a
add esp, 4
mov ecx, ebx
push esi
call fcn.0046b6c0
mov esi, dword [ebp - 0x2834]
mov dword [ebx + 0x10], 5
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]
mov dword [ebp - 0x282c], eax
test ebx, ebx
je 0x467ae4
mov dword [ebx + 0x10], 0
lea ecx, [ebp - 0xa10]
call fcn.004118b0
test al, al
je 0x467ea3
cmp dword [ebp - 0x282c], 0
je 0x467ea3
sub esp, 0x18
lea eax, [ebp - 0x1e10]
mov ecx, esp
push eax
call fcn.00402270
call fcn.00411770
mov esi, eax
mov dword [ebp - 0x282c], edx
lea eax, [ebp - 0xa10]
mov ecx, esp
push eax
call fcn.00402270
call fcn.00411770
add esp, 0x18
cmp esi, eax
jne 0x467e08
cmp dword [ebp - 0x282c], edx
jne 0x467e08
cmp byte [0x4ab9ac], 0
je 0x467c54
test ebx, ebx
je 0x467be1
cmp dword [ebx], 0
je 0x467be1
push 0x44
call fcn.0046ba01
mov esi, eax
add esp, 4
mov dword [ebp - 0x282c], esi
lea eax, [ebp - 0x2858]
mov byte [ebp - 4], 6
push 0x3f2
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 - 0x2830], 2
cmovne edi, eax
push edi
call fcn.0040b530
mov esi, eax
mov dword [ebp - 4], 0
push dword [ebp - 0x2850]
call fcn.0046bc3a
add esp, 4
push dword [ebp - 0x2858]
call fcn.0046bc3a
add esp, 4
mov ecx, ebx
push esi
call fcn.0046b6c0
mov dword [ebx + 0x10], 0
push 6
push ebx
lea edx, [ebp - 0xa10]
lea ecx, [ebp - 0x1e10]
call fcn.004120c0
add esp, 8
test al, al
jne 0x467c54
push 0
mov ecx, 0x3f3
call fcn.004114c0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0xa10]
add esp, 4
push eax
call ebx
cmp dword [ebp - 0x2834], 5
jne 0x467f7e
jmp 0x467f4c
push 0
mov ecx, 0x2eb
call fcn.004114c0
add esp, 4
jmp 0x467f7e
push 0
mov ecx, 0x2e3
call fcn.004114c0
add esp, 4
jmp 0x467f7e
mov esi, dword [ebp - 0x2834]
cmp esi, 5
jne 0x467d19
push dword [0x4ae22c]
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x2810]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
mov ecx, 0x3f4
call fcn.004114c0
add esp, 4
cmp dword [0x4adec0], 6
jg 0x467e01
jne 0x467cb4
cmp dword [0x4adec4], 2
jge 0x467e01
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0x1e10]
cmp esi, 4
jne 0x467d96
push str._sIFW_BootWIM_Data
push eax
call fcn.0040a9b0
add esp, 0xc
mov ecx, 0x4ae118
cmp dword [0x4ae12c], 8
mov eax, 0x4ae070
cmovae ecx, dword [0x4ae118]
cmp dword [0x4ae084], 8
push ecx
cmovae eax, dword [0x4ae070]
push eax
lea eax, [ebp - 0xa10]
push str._s_sIFW_BootWIM_Data
push eax
call fcn.0040a9b0
add esp, 0x10
jmp 0x467dcc
cmp esi, 4
jne 0x467c83
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0x1e10]
push str._sTBWinRE.txt
push eax
call fcn.0040a9b0
add esp, 0xc
mov ecx, 0x4ae118
cmp dword [0x4ae12c], 8
mov eax, 0x4ae070
cmovae ecx, dword [0x4ae118]
cmp dword [0x4ae084], 8
push ecx
cmovae eax, dword [0x4ae070]
push eax
lea eax, [ebp - 0xa10]
push str._s_sTBWinRE.txt
push eax
call fcn.0040a9b0
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0xa10]
add esp, 0x10
push 0
push eax
lea eax, [ebp - 0x1e10]
push eax
call ebx
jmp 0x467c89
push str._sIFW_WinRE_Data
push eax
call fcn.0040a9b0
add esp, 0xc
mov eax, 0x4ae1e4
cmp dword [0x4ae1f8], 8
cmovae eax, dword [0x4ae1e4]
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 ebx
lea ecx, [ebp - 0xa10]
call fcn.004118b0
test al, al
jne 0x467e01
push 0
mov ecx, 0x3f5
call fcn.004114c0
add esp, 4
jmp 0x467f7e
mov bl, 1
jmp 0x467f80
lea eax, [ebp - 0x2858]
push 0x3f0
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]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x467e30
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x2828]
call fcn.00402430
mov byte [ebp - 4], 0
push dword [ebp - 0x2850]
call fcn.0046bc3a
add esp, 4
push dword [ebp - 0x2858]
call fcn.0046bc3a
add esp, 4
lea ecx, [ebp - 0x2828]
push 6
push str.__0x2_
call fcn.0040a760
cmp dword [ebp - 0x2814], 8
lea ecx, [ebp - 0x2828]
push 0
cmovae ecx, dword [ebp - 0x2828]
mov edx, 1
call fcn.00411390
jmp 0x467c08
lea eax, [ebp - 0x2858]
push 0x3f0
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]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x467ec7
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x2828]
call fcn.00402430
mov byte [ebp - 4], 0
push dword [ebp - 0x2850]
call fcn.0046bc3a
add esp, 4
push dword [ebp - 0x2858]
call fcn.0046bc3a
add esp, 4
lea ecx, [ebp - 0x2828]
push 6
push str.__0x1_
call fcn.0040a760
cmp dword [ebp - 0x2814], 8
lea ecx, [ebp - 0x2828]
push 0
cmovae ecx, dword [ebp - 0x2828]
mov edx, 1
call fcn.00411390
add esp, 4
cmp esi, 5
jne 0x467f7e
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0xa10]
push eax
call ebx
push 0
lea eax, [ebp - 0xa10]
push eax
lea eax, [ebp - 0x2810]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [0x4ae22c]
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x2810]
push eax
call ebx
xor bl, bl
mov edx, dword [ebp - 0x2814]
cmp edx, 8
jb 0x467fbc
mov ecx, dword [ebp - 0x2828]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x467fb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467fda
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