Function at 0x42cb3c
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x16a8
call fcn.004501f0
push ebx
push esi
push edi
push 0x401820
lea ecx, [ebp - 0x48]
call fcn.004138d0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call fcn.004138a0
lea eax, [ebp - 0x30]
push eax
call fcn.0044693b
pop ecx
xor ebx, ebx
mov dword [ebp - 0x18], eax
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004145d0
mov esi, dword [ebp + 0x10]
xor eax, eax
push esi
mov word [ebp - 0x4c], ax
mov edi, 0x104
mov word [ebp - 0x254], ax
lea eax, [ebp - 0x254]
push edi
push eax
call fcn.0042d2f9
add esp, 0xc
test al, al
je 0x42ced4
push 0x4015e8
lea eax, [ebp - 0x254]
push edi
push eax
call fcn.0042d2d1
add esp, 0xc
test al, al
je 0x42ced4
mov eax, dword [ebp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0x42c1cb
push 0x401768
push dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0xc], esi
call edi
test eax, eax
je 0x42ced4
push 0x104
push dword [ebp + 0x14]
call fcn.0042d334
pop ecx
pop ecx
test eax, eax
je 0x42ced4
push 0x104
push esi
call fcn.0042d334
pop ecx
pop ecx
test eax, eax
je 0x42cda4
xor eax, eax
mov byte [ebp - 1], 1
mov word [ebp - 0x258], ax
mov edi, 0xa28
mov word [ebp - 0x16a8], ax
lea eax, [ebp - 0x16a8]
push edi
push eax
push dword [ebp + 8]
call fcn.0042c077
add esp, 0xc
test al, al
je 0x42cd28
push 0x401640
lea eax, [ebp - 0x16a8]
push edi
push eax
call fcn.0042d2d1
add esp, 0xc
test al, al
je 0x42cd28
push 0x401848
lea eax, [ebp - 0x16a8]
push edi
push eax
call fcn.0042d2d1
add esp, 0xc
test al, al
je 0x42cd28
push esi
lea eax, [ebp - 0x16a8]
push edi
push eax
call fcn.0042d2d1
add esp, 0xc
test al, al
je 0x42cd28
push 0x401850
lea eax, [ebp - 0x16a8]
push edi
push eax
call fcn.0042d2d1
add esp, 0xc
test al, al
je 0x42cd28
push 0x401668
lea eax, [ebp - 0x16a8]
push edi
push eax
call fcn.0042d2d1
add esp, 0xc
test al, al
je 0x42cd28
push 0x401848
lea eax, [ebp - 0x16a8]
push edi
push eax
call fcn.0042d2d1
add esp, 0xc
test al, al
je 0x42cd28
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x16a8]
push edi
push eax
call fcn.0042d2d1
add esp, 0xc
test al, al
je 0x42cd28
push 0x401850
lea eax, [ebp - 0x16a8]
push edi
push eax
call fcn.0042d2d1
add esp, 0xc
test al, al
jne 0x42cd2b
mov byte [ebp - 1], bl
lea eax, [ebp - 0x16a8]
push eax
push dword [ebp + 8]
call fcn.0042bc37
pop ecx
pop ecx
mov dword [ebp - 8], ebx
cmp byte [ebp - 1], bl
je 0x42cd6f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x16a8]
push eax
push ebx
call fcn.0042c553
add esp, 0xc
test al, al
je 0x42cd61
cmp dword [ebp - 8], ebx
je 0x42cd68
mov al, bl
mov byte [ebp - 1], al
jmp 0x42cd6b
mov al, byte [ebp - 1]
test al, al
jne 0x42cd7f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 1], bl
je 0x42ced4
lea eax, [ebp - 0x254]
push eax
push 0x104
push esi
call fcn.0042d2f9
add esp, 0xc
test al, al
je 0x42ced4
xor eax, eax
inc eax
jmp 0x42ced6
lea eax, [ebp - 0x14]
push eax
push 0x42c1cb
push 0x401760
push dword [ebp + 0xc]
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42cdce
call edi
cmp eax, 0x715
jne 0x42ced8
push 0x104
push esi
call fcn.0042d334
pop ecx
pop ecx
test eax, eax
je 0x42ce34
lea eax, [ebp - 0x254]
push eax
push esi
call fcn.0042b7ed
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ecx
pop ecx
push esi
mov byte [ebp - 1], al
call edi
mov al, byte [ebp - 1]
test al, al
je 0x42ceda
lea eax, [ebp - 0x254]
push eax
push 0x104
push esi
call fcn.0042d2f9
add esp, 0xc
test al, al
jne 0x42ce2c
lea eax, [ebp - 0x254]
push eax
call edi
jmp 0x42ced8
mov al, byte [ebp - 1]
jmp 0x42ceda
lea eax, [ebp - 0x14]
push eax
push 0x42c1cb
push 0x401758
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
test eax, eax
jne 0x42ce5c
call edi
cmp eax, 0x715
jne 0x42cedc
mov ebx, 0x104
push ebx
push esi
call fcn.0042d334
pop ecx
pop ecx
test eax, eax
je 0x42cec4
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x42cec4
push 3
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x42cea2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov word [esi], ax
jmp 0x42cec4
lea eax, [ebp - 0x254]
push eax
push ebx
push esi
call fcn.0042d2f9
add esp, 0xc
test al, al
jne 0x42cec4
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push esi
call fcn.0042d334
test eax, eax
pop ecx
pop ecx
setne bl
jmp 0x42cedc
mov al, bl
mov bl, al
mov al, bl
mov bl, al
lea ecx, [ebp - 0x30]
call fcn.0042bc1c
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret