Function at 0x45e970
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4806c9
mov eax, dword fs:[0]
push eax
mov eax, 0x1e44
call fcn.0047a9b0
mov eax, dword [0x49f008]
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 [0x49f998], 0
je 0x45ea70
cmp esi, 4
je 0x45e9d8
cmp esi, 5
jne 0x45ea70
push 0x3df
jmp 0x45e9dd
push 0x3de
lea eax, [ebp - 0x1e3c]
push eax
call fcn.004643b0
mov edi, 0x487d18
mov edx, 1
mov ecx, edi
push 0
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
call fcn.00410e40
add esp, 0xc
push dword [ebp - 0x1e34]
call fcn.004634ea
add esp, 4
push dword [ebp - 0x1e3c]
call fcn.004634ea
add esp, 4
cmp dword [0x49f9ac], 0
jne 0x45ea77
lea eax, [ebp - 0x1e3c]
push 0x3e0
push eax
call fcn.004643b0
push 0
mov edx, 1
mov eax, dword [eax]
test eax, eax
cmovne edi, eax
mov ecx, edi
call fcn.00410e40
add esp, 0xc
push dword [ebp - 0x1e34]
call fcn.004634ea
add esp, 4
push dword [ebp - 0x1e3c]
call fcn.004634ea
add esp, 4
xor al, al
jmp 0x45f181
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, 0x49f99c
cmp dword [0x49f9b0], 8
cmovae eax, dword [0x49f99c]
push eax
lea eax, [ebp - 0x1410]
push 0x500
push eax
call fcn.0046b918
add esp, 0xc
lea ecx, [ebp - 0x1410]
call fcn.00411360
test al, al
jne 0x45eadf
push 0
mov ecx, 0x3e1
call fcn.00410f70
jmp 0x45f13e
lea eax, [ebp - 0x1410]
cmp esi, 4
jne 0x45eaf1
push str.IFW_BootWIM_Backup
jmp 0x45eaf6
push str.IFW_WinRE_Backup
push 0x500
push eax
call fcn.0046b97c
add esp, 0xc
lea eax, [ebp - 0x1410]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x1410]
call fcn.00411360
test al, al
jne 0x45eb33
push 0
mov ecx, 0x3e4
call fcn.00410f70
jmp 0x45f13e
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0xa10]
push str._s_boot.wim
push eax
call fcn.0040a5b0
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.0040a5b0
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.0040a5b0
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.0040a5b0
add esp, 0xc
lea ecx, [ebp - 0xa10]
call fcn.00412300
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0xa10]
push str._sIFW_WinRE_Data.
push eax
call fcn.0040a5b0
add esp, 0xc
lea ecx, [ebp - 0xa10]
call fcn.00412300
cmp esi, 4
jne 0x45ec43
cmp dword [0x4a2074], 8
mov ecx, 0x4a2060
mov eax, 0x4a1fb8
cmovae ecx, dword [0x4a2060]
cmp dword [0x4a1fcc], 8
push ecx
cmovae eax, dword [0x4a1fb8]
push eax
lea eax, [ebp - 0x1e10]
push 0x491118
push eax
call fcn.0040a5b0
lea eax, [ebp - 0x1410]
push eax
push str._s_boot.wim
jmp 0x45ec88
cmp dword [0x4a2158], 8
mov ecx, 0x4a2144
mov eax, 0x4a212c
cmovae ecx, dword [0x4a2144]
cmp dword [0x4a2140], 8
push ecx
cmovae eax, dword [0x4a212c]
push eax
lea eax, [ebp - 0x1e10]
push 0x48859c
push eax
call fcn.0040a5b0
lea eax, [ebp - 0x1410]
push eax
push str._swinre.wim
lea eax, [ebp - 0xa10]
push eax
call fcn.0040a5b0
add esp, 0x1c
test ebx, ebx
je 0x45ed21
cmp dword [ebx], 0
je 0x45ed21
push 0x44
call fcn.004632b1
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.004643b0
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.0040b130
mov esi, eax
mov dword [ebp - 4], 0
push dword [ebp - 0x1e34]
call fcn.004634ea
add esp, 4
push dword [ebp - 0x1e3c]
call fcn.004634ea
add esp, 4
mov ecx, ebx
push esi
call fcn.00462f70
mov dword [ebx + 0x10], 0
push 0
push 0
push ebx
push 0x42d550
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.00411360
test al, al
je 0x45f0a7
test esi, esi
je 0x45f0a7
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.004021d0
call fcn.00411220
mov esi, eax
mov dword [ebp - 0x1e2c], edx
lea eax, [ebp - 0xa10]
mov ecx, esp
push eax
call fcn.004021d0
call fcn.00411220
add esp, 0x18
cmp esi, eax
jne 0x45f000
cmp dword [ebp - 0x1e2c], edx
jne 0x45f000
cmp byte [0x49f999], 0
je 0x45ee87
test ebx, ebx
je 0x45ee4b
cmp dword [ebx], 0
je 0x45ee4b
push 0x44
call fcn.004632b1
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.004643b0
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.0040b130
mov esi, eax
mov dword [ebp - 4], 0
push dword [ebp - 0x1e40]
call fcn.004634ea
add esp, 4
push dword [ebp - 0x1e48]
call fcn.004634ea
add esp, 4
mov ecx, ebx
push esi
call fcn.00462f70
mov dword [ebx + 0x10], 0
push 0
push ebx
lea edx, [ebp - 0xa10]
lea ecx, [ebp - 0x1e10]
call fcn.00411b70
add esp, 8
test al, al
jne 0x45ee87
push 0
mov ecx, 0x3e9
call fcn.00410f70
add esp, 4
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x45f141
mov esi, dword [ebp - 0x1e4c]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp esi, 4
jne 0x45eefe
cmp dword [0x4a2074], 8
mov ecx, 0x4a2060
mov eax, 0x4a1fb8
cmovae ecx, dword [0x4a2060]
cmp dword [0x4a1fcc], 8
push ecx
cmovae eax, dword [0x4a1fb8]
push eax
lea eax, [ebp - 0x1e10]
push str._s_sTBWinRE.txt
push eax
call fcn.0040a5b0
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0xa10]
push str._sTBWinRE.txt
push eax
call fcn.0040a5b0
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.00410f70
add esp, 4
cmp dword [0x4a1df0], 6
jg 0x45eff9
jne 0x45ef29
cmp dword [0x4a1df4], 2
jge 0x45eff9
cmp esi, 4
jne 0x45ef84
cmp dword [0x4a2074], 8
mov ecx, 0x4a2060
mov eax, 0x4a1fb8
cmovae ecx, dword [0x4a2060]
cmp dword [0x4a1fcc], 8
push ecx
cmovae eax, dword [0x4a1fb8]
push eax
lea eax, [ebp - 0x1e10]
push str._s_sIFW_BootWIM_Data
push eax
call fcn.0040a5b0
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0xa10]
push str._sIFW_BootWIM_Data
push eax
call fcn.0040a5b0
add esp, 0x1c
jmp 0x45efc7
cmp dword [0x4a2140], 8
mov eax, 0x4a212c
cmovae eax, dword [0x4a212c]
push eax
lea eax, [ebp - 0x1e10]
push str._sIFW_WinRE_Data
push eax
call fcn.0040a5b0
add esp, 0xc
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0xa10]
push str._sIFW_WinRE_Data
push eax
call fcn.0040a5b0
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.00411360
test al, al
jne 0x45eff9
push 0
mov ecx, 0x3eb
call fcn.00410f70
jmp 0x45f13e
mov bl, 1
jmp 0x45f143
lea eax, [ebp - 0x1e48]
push 0x3e6
push eax
call fcn.004643b0
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 0x45f024
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x1e28]
call fcn.00402380
mov byte [ebp - 4], 0
push dword [ebp - 0x1e40]
call fcn.004634ea
add esp, 4
push dword [ebp - 0x1e48]
call fcn.004634ea
add esp, 4
lea ecx, [ebp - 0x1e28]
push 6
push str.__0x2_
call fcn.0040a360
cmp dword [ebp - 0x1e14], 8
lea ecx, [ebp - 0x1e28]
push 0
cmovae ecx, dword [ebp - 0x1e28]
mov edx, 1
call fcn.00410e40
add esp, 4
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x45f141
lea eax, [ebp - 0x1e48]
push 0x3e6
push eax
call fcn.004643b0
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 0x45f0d0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x1e28]
call fcn.00402380
mov byte [ebp - 4], 0
push dword [ebp - 0x1e40]
call fcn.004634ea
add esp, 4
push dword [ebp - 0x1e48]
call fcn.004634ea
add esp, 4
lea ecx, [ebp - 0x1e28]
push 6
push str.__0x1_
call fcn.0040a360
cmp dword [ebp - 0x1e14], 8
lea ecx, [ebp - 0x1e28]
push 0
cmovae ecx, dword [ebp - 0x1e28]
mov edx, 1
call fcn.00410e40
add esp, 4
xor bl, bl
mov edx, dword [ebp - 0x1e14]
cmp edx, 8
jb 0x45f17f
mov ecx, dword [ebp - 0x1e28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45f175
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45f19d
push edx
push ecx
call fcn.004632e1
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.004632a0
mov esp, ebp
pop ebp
ret
call fcn.0046851b
int3