Function at 0x10031ba0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10161a3c
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x101c3db4]
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 edi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10136420
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], eax
mov word [ebp - 0x230], ax
sub esp, 0xc
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
cmp dword [ecx + 0x14], 8
jb 0x10031c37
mov eax, dword [ecx]
jmp 0x10031c39
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push edi
mov word [eax], dx
call fcn.10028240
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x248]
call fcn.10031100
add esp, 0x18
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
lea esi, [ebp - 0x248]
cmovae eax, dword [ebp - 0x230]
cmp dword [ebp - 0x234], 8
push eax
cmovae esi, dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push 0x101b6128
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10031b80
xor eax, eax
mov dword [ebp - 0x24c], 7
add esp, 0x18
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
cmp word [ebp - 0x218], ax
jne 0x10031ccf
xor ecx, ecx
jmp 0x10031cef
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031ce0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.10028570
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x290]
call fcn.10031610
mov esi, eax
mov edx, edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x278]
call fcn.10031610
cmp dword [esi + 0x14], 0x10
jb 0x10031d32
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x10031d3a
mov eax, dword [eax]
push esi
push eax
call fcn.1013f5f0
mov eax, dword [ebp - 0x264]
add esp, 8
cmp eax, 0x10
jb 0x10031d62
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.100291f0
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x264], 0xf
mov dword [ebp - 0x268], 0
mov byte [ebp - 0x278], 0
cmp eax, 0x10
jb 0x10031d9b
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.100291f0
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x10031db9
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.100292d0
push 4
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
mov eax, dword [ebp - 0x21c]
setne bl
cmp eax, 8
jb 0x10031ded
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.100292d0
mov ecx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp ecx, 8
jb 0x10031e28
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call fcn.100292d0
mov al, bl
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.101156cc
mov esp, ebp
pop ebp
ret