Function at 0x45d360
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x482f10
mov eax, dword fs:[0]
push eax
sub esp, 0x6a4
mov eax, dword [0x4a0fe0]
xor eax, esp
mov dword [esp + 0x6a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a0fe0]
xor eax, esp
push eax
lea eax, [esp + 0x6b8]
mov dword fs:[0], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x6c0], 1
mov dword [esp + 0x24], eax
call dword [0x4a23c0]
mov ebp, dword [esp + 0x6c8]
push eax
push ebp
lea ecx, [esp + 0x2c]
call fcn.00455040
push pe_nt_image_headers32
lea ecx, [esp + 0x2b0]
push ecx
push pe_nt_image_headers32
lea edx, [esp + 0x1b8]
push edx
mov edx, dword [esp + 0x34]
push pe_nt_image_headers32
lea eax, [esp + 0x4c4]
push eax
push 3
lea ecx, [esp + 0x30]
push ecx
push edx
call fcn.0046ea04
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x4c]
add esp, 0x24
cmp eax, ecx
je 0x45d416
push eax
call fcn.0046d1a5
add esp, 4
lea edx, [esp + 0x2ac]
push edx
lea eax, [esp + 0x1b0]
push eax
push 0
push 0
lea ecx, [esp + 0x5c0]
push 0x104
push ecx
call fcn.0046e8fd
push 0
push 0
lea edx, [esp + 0x4d0]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x3d4]
push 0x104
push ecx
call fcn.0046e8fd
lea edx, [esp + 0x58]
add esp, 0x30
mov dword [esp + 0x24], edx
call dword [0x4a23c0]
push eax
mov eax, dword [esp + 0x6d0]
push eax
lea ecx, [esp + 0x2c]
call fcn.00455040
mov edi, dword [esp + 0x24]
lea eax, [esp + 0xa8]
mov edx, edi
mov ecx, eax
mov esi, 0x104
sub edx, ecx
jmp 0x45d4a0
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x45d4bd
mov cl, byte [edx + eax]
test cl, cl
je 0x45d4bd
mov byte [eax], cl
add eax, 1
sub esi, 1
jne 0x45d4a0
jmp 0x45d4c1
test esi, esi
jne 0x45d4c4
sub eax, 1
lea edx, [esp + 0x28]
cmp edi, edx
mov byte [eax], 0
je 0x45d4d8
push edi
call fcn.0046d1a5
add esp, 4
lea eax, [esp + 0x18]
push eax
push 1
push 0x454310
push 0x454300
push 0x4542d0
push 0x4542a0
push 0x454280
push 0x454250
push 0x454230
call sub.Cabinet.dll_FDICreate
mov edi, eax
add esp, 0x24
test edi, edi
jne 0x45d53a
mov ecx, dword [esp + 0x18]
push ecx
push str._ERROR_UnCabinetFile___FDICreate___d__n
call fcn.00401010
mov edx, dword [esp + 0x20]
push edx
push str.ERROR_UnCabinetFile___FDICreate_____d__n
push 2
call fcn.00448d80
add esp, 0x14
xor esi, esi
jmp 0x45d5ea
lea eax, [esp + 0xa8]
push eax
push 0
push 0x45cb40
push 0
lea ecx, [esp + 0x3bc]
push ecx
lea edx, [esp + 0x5c4]
push edx
push edi
call sub.Cabinet.dll_FDICopy
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x45d58f
mov eax, dword [esp + 0x18]
push eax
push str._ERROR_UnCabinetFile___FDICopy___d__n
call fcn.00401010
mov ecx, dword [esp + 0x20]
push ecx
push str.ERROR_UnCabinetFile___FDICopy___d__n
push 2
call fcn.00448d80
add esp, 0x14
jmp 0x45d5e1
push ebp
push str.____UnCabinetFile___Completed_CabinetFile___s__n
call fcn.00401010
push ebp
push str.UnCabinetFile___Completed_CabinetFile___s__n
push 0
call fcn.00448d80
add esp, 0x14
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x45d5e1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
push ebp
push str._ERROR_UnCabinetFile___DeleteFile_FileName_s___d__n
call fcn.00401010
add esp, 0xc
call ebx
push eax
push ebp
push str.ERROR_UnCabinetFile___DeleteFile_FileName_s___d__n
push 2
call fcn.00448d80
add esp, 0x10
push edi
call sub.Cabinet.dll_FDIDestroy
add esp, 4
test esi, esi
lea eax, [ebp - 0x10]
setne bl
mov byte [esp + 0x6c0], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45d613
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x6cc]
add eax, 0xfffffff0
mov dword [esp + 0x6c0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d641
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x6b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6a0]
xor ecx, esp
call fcn.0046d626
add esp, 0x6b0
ret 8