Function at 0x409140
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4846b3
mov eax, dword fs:[0]
push eax
mov eax, 0x283c
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 esi, ecx
mov dword [ebp - 4], 0
cmp byte [esi + 0x60], 0
jne 0x4091c5
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4091bb
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4091b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40967c
push edx
push ecx
call fcn.0046ba31
add esp, 8
mov eax, 2
jmp 0x40965e
cmp dword [ebp + 0x18], 0
jne 0x40920f
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x409205
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4091fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409681
push edx
push ecx
call fcn.0046ba31
add esp, 8
mov eax, 8
jmp 0x40965e
mov edx, dword [esi + 0x84]
push ecx
mov ecx, dword [esi + 0x80]
call fcn.0040afa0
mov eax, dword [esi + 0x80]
add esp, 4
mov dword [esi + 0x84], eax
xor eax, eax
mov dword [esi + 0x8c], 0
mov dword [ebp - 0x2830], 0
mov dword [ebp - 0x282c], 7
mov word [ebp - 0x2840], ax
mov byte [ebp - 4], 1
xor ebx, ebx
cmp dword [esi + 0x50], 6
jl 0x409623
jne 0x409273
cmp dword [esi + 0x54], 2
jl 0x409623
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.0040a970
add esp, 0xc
lea eax, [ebp - 0x2810]
mov ecx, esi
push eax
call fcn.00405070
test al, al
je 0x4091cb
cmp dword [esi + 0x8c], ebx
je 0x4092f5
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4092eb
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4092e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409681
push edx
push ecx
call fcn.0046ba31
add esp, 8
mov eax, 9
jmp 0x40965e
mov edi, dword [esi + 0x80]
xor ecx, ecx
mov dword [ebp - 0x2844], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [esi + 0x84]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x4095e6
xor eax, eax
mov dword [ebp - 0x2848], eax
nop dword [eax]
add eax, edi
xor ecx, ecx
mov word [ebp - 0x1810], cx
cmp dword [eax + 0x14], 8
jb 0x409343
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x1810]
push 0x400
push eax
call fcn.00474910
add esp, 0xc
lea eax, [ebp - 0x1810]
push 0x400
push eax
call fcn.00475084
add esp, 8
lea eax, [ebp - 0x1810]
lea ecx, [ebp - 0x2828]
push eax
call fcn.00402270
push ecx
push str.INDEX_:
lea ecx, [ebp - 0x2828]
call fcn.0040a4e0
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4093a9
push ecx
push str.INDEX:
lea ecx, [ebp - 0x2828]
call fcn.0040a4e0
mov ecx, eax
mov edx, dword [ebp - 0x2814]
lea eax, [ebx + 1]
cmp ecx, 0xffffffff
cmove eax, ebx
mov ebx, eax
cmp edx, 8
jb 0x4093f4
mov ecx, dword [ebp - 0x2828]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4093ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40967c
push edx
push ecx
call fcn.0046ba31
add esp, 8
mov ecx, dword [esi + 0x84]
mov eax, 0x2aaaaaab
mov edi, dword [esi + 0x80]
sub ecx, edi
inc dword [ebp - 0x2844]
add dword [ebp - 0x2848], 0x18
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x2844], eax
jge 0x409433
mov eax, dword [ebp - 0x2848]
jmp 0x409330
cmp ebx, 1
jne 0x4095e6
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.00474910
lea ecx, [ebp - 0x1010]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409465
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
jle 0x4094c4
nop dword [eax + eax]
movzx ecx, word [ebp + eax*2 - 0x1010]
cmp ecx, 0x2e
je 0x4094ad
cmp ecx, 0x5c
je 0x409499
dec eax
test eax, eax
jg 0x409480
jmp 0x4094c4
lea eax, [eax*2 + 2]
cmp eax, 0x1000
jae 0x409686
jmp 0x4094ba
add eax, eax
cmp eax, 0x1000
jae 0x409686
xor ecx, ecx
mov word [ebp + eax - 0x1010], cx
push str.__tempopt.wim
lea eax, [ebp - 0x1010]
push 0x800
push eax
call fcn.00474974
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x1010]
add esp, 0xc
push eax
call edi
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x1010]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
call ebx
test eax, eax
jne 0x409519
lea eax, [ebp - 0x1010]
push eax
call edi
jmp 0x4091cb
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.0040a970
add esp, 0x10
lea eax, [ebp - 0x2810]
mov ecx, esi
push eax
call fcn.00405070
test al, al
je 0x4095a5
cmp dword [esi + 0x8c], 0
jne 0x4095a5
lea eax, [ebp - 0x1010]
push eax
call edi
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x40959e
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409594
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409681
push edx
push ecx
call fcn.0046ba31
add esp, 8
xor eax, eax
jmp 0x40965e
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
mov edx, dword [ebp + 0x1c]
je 0x4091ce
jmp 0x4092b4
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x40961c
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409612
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409681
push edx
push ecx
call fcn.0046ba31
add esp, 8
mov eax, 0xc
jmp 0x40965e
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x409659
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40964f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409681
push edx
push ecx
call fcn.0046ba31
add esp, 8
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.0046b9f0
mov esp, ebp
pop ebp
ret 0x18
call fcn.00471513
call fcn.00471513
call fcn.0046bb60
int3