Function at 0x1004252c
Capabilities:
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x478], eax
mov edi, ecx
xor eax, eax
push 0x20
push 0x40
mov dword [ebp - 0x46c], eax
mov ebx, eax
mov dword [ebp - 0x474], eax
mov dword [ebp - 0x470], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [edi + 4], eax
test eax, eax
jne 0x10042583
mov esi, 0x8007000e
jmp 0x10042812
push 0x10006f50
xor eax, eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [edi + 4]
mov dword [ecx + 0x1c], eax
mov ecx, edi
call fcn.10046af8
test eax, eax
jne 0x100425ad
mov esi, 0x80070005
jmp 0x10042812
mov eax, dword [edi + 4]
xor ecx, ecx
push 0xa4
push 0x40
mov dword [ebp - 0x474], 1
mov dword [eax + 0x10], ecx
mov eax, dword [edi + 4]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 4]
mov dword [eax + 0x14], ecx
mov eax, dword [edi + 4]
mov dword [eax + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [edi + 4]
mov dword [ecx + 0x10], eax
xor ecx, ecx
mov eax, dword [edi + 4]
cmp dword [eax + 0x10], ecx
je 0x10042579
test esi, esi
je 0x1004260a
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x46c]
jne 0x100425f7
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x468], eax
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [edi + 4]
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x10042579
mov edx, dword [ebp - 0x468]
push esi
call fcn.1000b82d
lea eax, [ebp - 0x464]
push eax
mov eax, dword [edi + 4]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10042662
mov esi, 0x80004005
jmp 0x10042812
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov dword [ebp - 0x468], eax
cmp dword [ebp - 0x478], eax
jne 0x1004276f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
jmp 0x1004276f
test esi, esi
js 0x10042812
mov edx, dword [edi + 4]
mov ecx, ebx
call fcn.1004247f
mov esi, eax
test esi, esi
jns 0x1004279b
cmp esi, 0x80040110
jne 0x10042812
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x214]
mov edx, 0x104
push dword [eax + 0xc]
call fcn.1000b82d
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x46c]
jne 0x100426cf
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jb 0x10042794
lea ecx, [ecx*2 - 4]
cmp ecx, 0x208
jae 0x1004286a
xor eax, eax
mov edx, 0x104
mov word [ebp + ecx - 0x214], ax
lea ecx, [ebp - 0x214]
push 0x10006f88
call fcn.10022e38
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
je 0x10042744
cmp ebx, 0xffffffff
je 0x10042744
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x468], ebx
lea eax, [ebp - 0x214]
push eax
mov eax, dword [edi + 4]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1004276f
mov eax, dword [edi + 4]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10042812
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x468]
push eax
mov ecx, dword [ecx + 0xc]
call fcn.1003607a
mov ebx, dword [ebp - 0x468]
mov esi, eax
cmp ebx, 0xffffffff
jne 0x10042688
jmp 0x10042812
mov esi, 0x8000ffff
jmp 0x10042812
mov ecx, dword [edi + 4]
xor edx, edx
mov eax, dword [ecx + 0x10]
cmp dword [eax + 0x80], edx
jne 0x100427cb
mov edx, ebx
call fcn.100349a9
mov esi, eax
test esi, esi
js 0x100427e6
mov ecx, dword [edi + 4]
mov edx, ebx
call fcn.100340fd
test eax, eax
jne 0x100427cb
mov esi, 0x80004005
test esi, esi
js 0x100427e6
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x80]
test al, 0x10
jne 0x100427e6
test eax, 0x100
je 0x10042800
mov ecx, dword [edi + 4]
mov edx, ebx
mov dword [ebp - 0x470], 1
call fcn.10034a95
mov esi, eax
test esi, esi
js 0x1004282c
mov eax, dword [edi + 4]
xor ecx, ecx
mov esi, ecx
mov dword [eax + 8], ecx
cmp dword [ebp - 0x470], ecx
jne 0x1004282c
mov ecx, dword [edi + 4]
mov edx, ebx
call fcn.100349a9
test eax, eax
jns 0x1004282c
mov ecx, dword [edi + 4]
mov edx, ebx
call fcn.10034a95
mov esi, eax
test ebx, ebx
je 0x10042837
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x474], 0
je 0x10042847
mov ecx, edi
call fcn.10046b1c
test esi, esi
js 0x10042855
mov eax, dword [edi + 4]
mov dword [eax + 4], 1
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret 0xc
call fcn.10087a4a
int3