Function at 0x10028510
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a1a7
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x100764f8]
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 edx, dword [esi]
mov eax, dword [ebp + 8]
push eax
call dword [edx + 0x14]
test eax, eax
jne 0x10028559
mov dword [esi + 4], 1
jmp 0x100288b1
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1002856d
imul eax, eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10037070
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x10078018]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x100285ab
mov dword [esi + 4], 2
jmp 0x100288b1
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
lea eax, [ebp - 0x254]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.10027890
test eax, eax
je 0x100285ec
mov dword [esi + 4], eax
xor esi, esi
jmp 0x100288a4
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10016830
add esp, 8
test eax, eax
jne 0x10028636
mov dword [esi + 4], 2
xor esi, esi
jmp 0x10028899
mov ecx, dword [ebp - 0x25c]
mov eax, dword [ebp - 0x260]
sub ecx, eax
push ecx
push eax
push 0
call fcn.10008fe0
mov edx, dword [ebp - 0x250]
mov edi, eax
mov ecx, dword [ebp - 0x254]
sub edx, ecx
push edx
push ecx
push 0
call fcn.10008fe0
mov ebx, eax
add esp, 0x18
cmp edi, ebx
jne 0x10028679
mov esi, 1
jmp 0x10028899
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.10028ae0
add esp, 8
test eax, eax
jne 0x10028731
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x230]
push str._s_d__lu
push eax
call fcn.10014fd0
add esp, 0x10
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x10028707
lea ecx, [ebp - 0x230]
mov dword [esi + 4], 2
call fcn.10003fd0
xor esi, esi
jmp 0x10028899
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 4
cmovae eax, dword [ebp - 0x230]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x230]
call fcn.10003fd0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.100036f0
cmp byte [esi + 0x80], 0
mov byte [ebp - 4], 2
je 0x10028817
cmp dword [esi + 0x94], 0
jne 0x100287a8
push 1
push 0
lea eax, [ebp - 0x248]
push 0x1005ffa8
push eax
call fcn.100170b0
push ebx
lea eax, [ebp - 0x230]
push 0x1005ffac
push eax
call fcn.10014fd0
add esp, 0x1c
push eax
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 3
call fcn.10027470
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.10003fd0
jmp 0x10028817
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
push 0
push 0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 4
push 0x1005c4a0
push eax
call fcn.100170b0
lea eax, [esi + 0x84]
add esp, 0x10
cmp dword [eax + 0x14], 0x10
jb 0x100287f0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x224]
call fcn.100068d0
push eax
lea ecx, [ebp - 0x248]
call fcn.10027490
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.10004680
mov edx, dword [ebp - 0x250]
lea eax, [ebp - 0x248]
mov ecx, dword [ebp - 0x254]
sub edx, ecx
cmp dword [ebp - 0x234], 8
push edx
cmovae eax, dword [ebp - 0x248]
push ecx
push eax
call fcn.10017360
add esp, 0xc
test eax, eax
jne 0x10028853
mov dword [esi + 4], 3
xor esi, esi
jmp 0x1002888e
cmp byte [esi + 0x80], 0
je 0x10028889
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x1005ffbc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10028889
call eax
mov esi, 1
lea ecx, [ebp - 0x248]
call fcn.10003fd0
lea ecx, [ebp - 0x260]
call fcn.10014390
lea ecx, [ebp - 0x254]
call fcn.10014390
mov eax, esi
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.10034676
mov esp, ebp
pop ebp
ret 4