Function at 0x10031080
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101608bc
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x101c2db4]
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.101355e0
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 0x10031117
mov eax, dword [ecx]
jmp 0x10031119
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push edi
mov word [eax], dx
call fcn.100281c0
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x248]
call fcn.10030750
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 0x101b5130
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10031060
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 0x100311af
xor ecx, ecx
jmp 0x100311cf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100311c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.100284f0
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x290]
call fcn.10030c60
mov esi, eax
mov edx, edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x278]
call fcn.10030c60
cmp dword [esi + 0x14], 0x10
jb 0x10031212
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x1003121a
mov eax, dword [eax]
push esi
push eax
call fcn.1013e540
mov eax, dword [ebp - 0x264]
add esp, 8
cmp eax, 0x10
jb 0x10031242
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.10029170
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x264], 0xf
mov dword [ebp - 0x268], 0
mov byte [ebp - 0x278], 0
cmp eax, 0x10
jb 0x1003127b
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.10029170
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x10031299
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.10029250
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 0x100312cd
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.10029250
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 0x10031308
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call fcn.10029250
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.1011480c
mov esp, ebp
pop ebp
ret