Function at 0x4082b0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461833
mov eax, dword fs:[0]
push eax
mov eax, 0x283c
call fcn.0045db90
mov eax, dword [0x4920c0]
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 esi, ecx
mov dword [ebp - 4], 0
cmp byte [esi + 0x60], 0
jne 0x40830c
cmp dword [ebp + 0x1c], 8
jb 0x408302
push dword [ebp + 8]
call fcn.00450920
add esp, 4
mov eax, 2
jmp 0x4086c2
cmp dword [ebp + 0x18], 0
jne 0x40832d
cmp dword [ebp + 0x1c], 8
jb 0x408323
push dword [ebp + 8]
call fcn.00450920
add esp, 4
mov eax, 8
jmp 0x4086c2
push dword [ebp - 0x2844]
mov edx, dword [esi + 0x84]
push ecx
mov ecx, dword [esi + 0x80]
call fcn.004099d0
mov eax, dword [esi + 0x80]
mov dword [esi + 0x84], eax
xor eax, eax
add esp, 8
mov dword [esi + 0x8c], 0
mov dword [ebp - 0x2814], 7
mov dword [ebp - 0x2818], 0
mov word [ebp - 0x2828], ax
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x50]
xor edi, edi
cmp eax, 6
jl 0x4086ac
jne 0x408399
cmp dword [esi + 0x54], 2
jl 0x4086ac
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x2810]
push str._English__Get_WimInfo__WimFile:__s_
push eax
call fcn.00409950
add esp, 0xc
lea eax, [ebp - 0x2810]
push eax
mov ecx, esi
call fcn.00404d80
test al, al
je 0x4085cf
cmp dword [esi + 0x8c], edi
je 0x4083f4
lea ecx, [ebp - 0x2828]
call fcn.00401f20
lea ecx, [ebp + 8]
call fcn.00401f20
mov eax, 9
jmp 0x4086c2
xor ecx, ecx
mov dword [ebp - 0x2844], ecx
mov ecx, dword [esi + 0x84]
sub ecx, dword [esi + 0x80]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x408692
xor ebx, ebx
jmp 0x408430
xor eax, eax
mov word [ebp - 0x1810], ax
mov eax, dword [esi + 0x80]
add eax, ebx
cmp dword [eax + 0x14], 8
jb 0x408449
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x1810]
push 0x400
push eax
call fcn.004513ee
add esp, 0xc
lea eax, [ebp - 0x1810]
push 0x400
push eax
call fcn.0045194e
add esp, 8
lea eax, [ebp - 0x1810]
push eax
lea ecx, [ebp - 0x2840]
call fcn.00401ec0
push ecx
push str.INDEX_:
lea ecx, [ebp - 0x2840]
call fcn.00408f50
cmp eax, 0xffffffff
jne 0x4084b0
push ecx
push str.INDEX:
lea ecx, [ebp - 0x2840]
call fcn.00408f50
cmp eax, 0xffffffff
je 0x4084b1
inc edi
lea ecx, [ebp - 0x2840]
call fcn.00401f20
mov ecx, dword [esi + 0x84]
sub ecx, dword [esi + 0x80]
inc dword [ebp - 0x2844]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add ebx, 0x18
cmp dword [ebp - 0x2844], eax
jl 0x408430
cmp edi, 1
jne 0x408692
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1010]
push 0x800
push eax
call fcn.004513ee
lea ecx, [ebp - 0x1010]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408520
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
jle 0x40857f
jmp 0x408540
movzx ecx, word [ebp + eax*2 - 0x1010]
cmp ecx, 0x2e
je 0x40856c
cmp ecx, 0x5c
je 0x408559
dec eax
test eax, eax
jg 0x408540
jmp 0x40857f
lea eax, [eax*2 + 2]
cmp eax, 0x1000
jb 0x408575
call fcn.0045119a
add eax, eax
cmp eax, 0x1000
jae 0x408567
xor ecx, ecx
mov word [ebp + eax - 0x1010], cx
push str.__tempopt.wim
lea eax, [ebp - 0x1010]
push 0x800
push eax
call fcn.00451274
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
add esp, 0xc
lea eax, [ebp - 0x1010]
push eax
call edi
cmp dword [ebp + 0x1c], 8
mov ebx, dword [sym.imp.KERNEL32.DLL_MoveFileW]
lea ecx, [ebp - 0x1010]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
call ebx
test eax, eax
jne 0x4085ec
lea eax, [ebp - 0x1010]
push eax
call edi
lea ecx, [ebp - 0x2828]
call fcn.00401f20
lea ecx, [ebp + 8]
call fcn.00401f20
mov eax, 8
jmp 0x4086c2
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x2810]
push str._Export_Image__SourceImageFile:__s___SourceIndex:1__DestinationImageFile:__s_
push eax
call fcn.00409950
add esp, 0x10
lea eax, [ebp - 0x2810]
push eax
mov ecx, esi
call fcn.00404d80
test al, al
je 0x40864e
cmp dword [esi + 0x8c], 0
jne 0x40864e
lea eax, [ebp - 0x1010]
push eax
call edi
lea ecx, [ebp - 0x2828]
call fcn.00401f20
lea ecx, [ebp + 8]
call fcn.00401f20
xor eax, eax
jmp 0x4086c2
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call edi
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1010]
push eax
call ebx
lea eax, [ebp - 0x1010]
push eax
call edi
cmp dword [esi + 0x8c], 0
lea ecx, [ebp - 0x2828]
je 0x4085d5
jmp 0x4083dd
lea ecx, [ebp - 0x2828]
call fcn.00401f20
lea ecx, [ebp + 8]
call fcn.00401f20
mov eax, 0xc
jmp 0x4086c2
cmp dword [ebp + 0x1c], 8
jb 0x4086bd
push dword [ebp + 8]
call fcn.00450920
add esp, 4
mov eax, 0xb
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.0044fdac
mov esp, ebp
pop ebp
ret 0x18