Function at 0x40269c
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa40
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
push edi
push esi
mov word [ebp - 0x14], ax
mov ebx, 0x104
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00402cb2
add esp, 0xc
test al, al
je 0x402a1a
push 0x401398
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00402c8a
add esp, 0xc
test al, al
je 0x402a1a
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push eax
push 0x40217f
push 0x401470
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
call ebx
test eax, eax
je 0x402a1a
push 0x104
push edi
call fcn.00402ced
pop ecx
pop ecx
test eax, eax
je 0x402a1a
mov edi, 0x104
push edi
push esi
call fcn.00402ced
pop ecx
pop ecx
test eax, eax
je 0x4028fb
xor eax, eax
mov bl, 1
mov word [ebp - 0x220], ax
mov word [ebp - 0xa40], ax
lea eax, [ebp - 0xa40]
push 0x410
push eax
push dword [ebp + 8]
call fcn.00402019
add esp, 0xc
test al, al
jne 0x40279a
push 0x410
lea eax, [ebp - 0xa40]
push eax
push dword [ebp + 8]
call fcn.00401f8c
add esp, 0xc
test al, al
je 0x40288c
push 0x4013f0
lea eax, [ebp - 0xa40]
push 0x410
push eax
call fcn.00402c8a
add esp, 0xc
test al, al
je 0x40288c
push 0x401528
lea eax, [ebp - 0xa40]
push 0x410
push eax
call fcn.00402c8a
add esp, 0xc
test al, al
je 0x40288c
push esi
lea eax, [ebp - 0xa40]
push 0x410
push eax
call fcn.00402c8a
add esp, 0xc
test al, al
je 0x40288c
push 0x401530
lea eax, [ebp - 0xa40]
push 0x410
push eax
call fcn.00402c8a
add esp, 0xc
test al, al
je 0x40288c
push 0x401418
lea eax, [ebp - 0xa40]
push 0x410
push eax
call fcn.00402c8a
add esp, 0xc
test al, al
je 0x40288c
push 0x401528
lea eax, [ebp - 0xa40]
push 0x410
push eax
call fcn.00402c8a
add esp, 0xc
test al, al
je 0x40288c
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0xa40]
push 0x410
push eax
call fcn.00402c8a
add esp, 0xc
test al, al
je 0x40288c
push 0x401530
lea eax, [ebp - 0xa40]
push 0x410
push eax
call fcn.00402c8a
add esp, 0xc
test al, al
jne 0x40288e
xor bl, bl
lea eax, [ebp - 0xa40]
push eax
push dword [ebp + 8]
call fcn.00401bf9
and dword [ebp - 4], 0
pop ecx
pop ecx
test bl, bl
je 0x4028cc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xa40]
push eax
push 0
call fcn.004024c4
add esp, 0xc
test al, al
je 0x4028c6
cmp dword [ebp - 4], 0
je 0x4028c8
xor bl, bl
test bl, bl
jne 0x4028d7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test bl, bl
je 0x4028f4
lea eax, [ebp - 0x21c]
push eax
push edi
push esi
call fcn.00402cb2
add esp, 0xc
test al, al
je 0x4028f4
xor eax, eax
inc eax
jmp 0x402a1c
xor eax, eax
jmp 0x402a1c
lea eax, [ebp - 0x10]
push eax
push 0x40217f
push 0x401468
push dword [ebp + 0xc]
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402925
call edi
cmp eax, 0x715
jne 0x402a1a
push 0x104
push esi
call fcn.00402ced
pop ecx
pop ecx
test eax, eax
je 0x40297f
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.004017ca
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, al
pop ecx
pop ecx
push esi
call edi
test bl, bl
je 0x402978
lea eax, [ebp - 0x21c]
push eax
push 0x104
push esi
call fcn.00402cb2
add esp, 0xc
test al, al
jne 0x402978
lea eax, [ebp - 0x21c]
push eax
call edi
xor bl, bl
mov al, bl
jmp 0x402a1c
lea eax, [ebp - 0x10]
push eax
push 0x40217f
push 0x401460
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x40299f
call edi
cmp eax, 0x715
jne 0x402a1a
mov ebx, 0x104
push ebx
push esi
call fcn.00402ced
pop ecx
pop ecx
test eax, eax
je 0x402a07
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x402a07
push 3
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4029e5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov word [esi], ax
jmp 0x402a07
lea eax, [ebp - 0x21c]
push eax
push ebx
push esi
call fcn.00402cb2
add esp, 0xc
test al, al
jne 0x402a07
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push esi
call fcn.00402ced
pop ecx
pop ecx
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
jmp 0x402a1c
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret