Function at 0x100a8be0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c27cd
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x102258ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x168], eax
call fcn.1003a4f0
mov edx, eax
mov dword [ebp - 0x150], 0
mov ecx, edx
mov dword [ebp - 0x14c], 7
xor eax, eax
mov word [ebp - 0x160], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a8c47
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x160]
call fcn.1001e830
mov edi, dword [esi]
mov eax, dword [esi + 4]
mov dword [ebp - 4], 0
mov dword [ebp - 0x178], edi
mov dword [ebp - 0x188], eax
cmp edi, eax
je 0x100a9345
add edi, 0x44
mov dword [ebp - 0x170], edi
nop dword [eax]
mov esi, dword [ebp - 0x150]
lea ecx, [ebp - 0x148]
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x148], ax
mov eax, dword [ebp - 0x16c]
or eax, 1
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x168], eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x134], 7
call fcn.100251d0
cmp dword [ebp - 0x14c], 8
lea eax, [ebp - 0x160]
push esi
cmovae eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x148]
push eax
call fcn.10025050
push 1
push 0x101d1214
lea ecx, [ebp - 0x148]
call fcn.10025050
cmp dword [edi - 0x30], 8
mov ecx, dword [ebp - 0x178]
mov eax, ecx
jb 0x100a8d1e
mov eax, dword [ecx]
push dword [edi - 0x34]
lea ecx, [ebp - 0x148]
push eax
call fcn.10025050
mov dword [ebp - 0x120], 0
xor ecx, ecx
mov dword [ebp - 0x11c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x130], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x120], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0x16c]
or eax, 2
mov dword [ebp - 0x17c], eax
and eax, 0xfffffffe
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x168], eax
mov edx, dword [ebp - 0x134]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x100a8dcd
mov ecx, dword [ebp - 0x148]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100a8dc3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a939e
push edx
push ecx
call fcn.101454bc
add esp, 8
xor eax, eax
mov dword [ebp - 0x138], 0
cmp dword [ebp - 0x11c], 8
lea esi, [ebp - 0x130]
mov dword [ebp - 0x134], 7
cmovae esi, dword [ebp - 0x130]
mov word [ebp - 0x148], ax
call fcn.10020d50
mov ecx, eax
test ecx, ecx
je 0x100a93a3
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x164], eax
push esi
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 4
call fcn.10022430
test al, al
jne 0x100a8e5c
test esi, esi
jne 0x100a8e39
xor ecx, ecx
jmp 0x100a8e4f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a8e40
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x164]
call fcn.1001e110
mov edi, dword [ebp - 0x164]
add edi, 0xfffffff0
mov byte [ebp - 4], 6
push edi
call fcn.100205d0
add esp, 4
lea ecx, [ebp - 0x180]
add eax, 0x10
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x16c]
push 0x101d610c
or eax, 4
push str..tpi
mov dword [ebp - 0x168], eax
call fcn.10023660
mov esi, dword [ebp - 0x180]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100a8eb9
push esi
call fcn.10040ed0
add esp, 4
mov eax, dword [ebp - 0x17c]
add esi, 0xfffffff0
and eax, 0xfffffffa
mov dword [ebp - 0x16c], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100a8ee0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100a8ef9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x11c], 8
lea eax, [ebp - 0x130]
cmovae eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100a8f64
mov edx, dword [ebp - 0x11c]
mov byte [ebp - 4], al
cmp edx, 8
jb 0x100a931b
mov ecx, dword [ebp - 0x130]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100a8f55
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a939e
push edx
push ecx
call fcn.101454bc
add esp, 8
jmp 0x100a931b
mov edi, dword [ebp - 0x170]
cmp dword [edi - 0x1c], 0
je 0x100a90c8
mov byte [ebp - 4], 7
call fcn.10020d50
mov ecx, eax
test ecx, ecx
je 0x100a93a3
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x11c], 8
lea esi, [ebp - 0x130]
mov byte [ebp - 4], 8
cmovae esi, dword [ebp - 0x130]
call fcn.10020d50
mov ecx, eax
test ecx, ecx
je 0x100a93a3
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x164], eax
push esi
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 9
call fcn.10022430
test al, al
jne 0x100a900c
test esi, esi
jne 0x100a8fea
xor ecx, ecx
jmp 0x100a8fff
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a8ff0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x164]
call fcn.1001e110
lea eax, [ebp - 0x168]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x164]
push eax
call fcn.10022bd0
mov edx, dword [ebp - 0x164]
add esp, 8
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a9044
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi - 0x18], 8
lea ecx, [edi - 0x2c]
jb 0x100a904f
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x168]
mov edx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x100a907d
test si, si
je 0x100a9079
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x100a907d
add ecx, 4
add edx, 4
test si, si
jne 0x100a9057
xor ecx, ecx
jmp 0x100a9082
sbb ecx, ecx
or ecx, 1
lea edx, [eax - 0x10]
or eax, 0xffffffff
test ecx, ecx
je 0x100a90b2
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a909e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0
call fcn.10017de0
jmp 0x100a9321
mov byte [ebp - 4], 3
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a90c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi - 4], 0
je 0x100a915d
push 0x105
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.10187ab0
cmp dword [ebp - 0x11c], 8
lea ecx, [ebp - 0x118]
push 0x104
lea eax, [ebp - 0x130]
cmovae eax, dword [ebp - 0x130]
push ecx
push eax
call fcn.100c63f0
add esp, 0x18
lea eax, [edi - 0x14]
cmp dword [edi], 0x10
jb 0x100a9118
mov eax, dword [eax]
lea ecx, [ebp - 0x118]
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x100a9140
test dl, dl
je 0x100a913c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x100a9140
add ecx, 2
add eax, 2
test dl, dl
jne 0x100a9120
xor eax, eax
jmp 0x100a9145
sbb eax, eax
or eax, 1
test eax, eax
je 0x100a915d
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0
call fcn.10017de0
jmp 0x100a9321
mov byte [ebp - 4], 0xb
call fcn.10020d50
mov ecx, eax
test ecx, ecx
je 0x100a93a3
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x168], esi
cmp dword [ebp - 0x11c], 8
lea edi, [ebp - 0x130]
mov byte [ebp - 4], 0xc
cmovae edi, dword [ebp - 0x130]
call fcn.10020d50
mov ecx, eax
test ecx, ecx
je 0x100a93a3
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x164], eax
push edi
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0xd
call fcn.10022430
test al, al
jne 0x100a91fc
test edi, edi
jne 0x100a91d3
xor ecx, ecx
jmp 0x100a91ef
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a91e0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x164]
call fcn.1001e110
lea eax, [ebp - 0x164]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.100a8b40
add esp, 8
push dword [ebp - 0x174]
mov edi, dword [ebp - 0x164]
push edi
mov byte [ebp - 4], 0xf
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [ebp - 0x174]
lea edx, [esi - 0x10]
mov dword [ebp - 0x184], edx
lea ecx, [eax - 0x10]
cmp ecx, edx
je 0x100a92b3
lea ecx, [edx + 0xc]
mov dword [ebp - 0x17c], ecx
lea esi, [eax - 0x10]
mov ecx, dword [ecx]
shr ecx, 0x1f
test cl, cl
jne 0x100a9298
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x100a9298
push esi
call fcn.100205d0
mov edx, dword [ebp - 0x17c]
add esp, 4
mov dword [ebp - 0x168], eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100a9293
mov esi, dword [ebp - 0x184]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x168]
lea esi, [eax + 0x10]
jmp 0x100a92ad
push dword [esi + 4]
lea ecx, [ebp - 0x168]
push eax
call fcn.1001e110
mov esi, dword [ebp - 0x168]
mov eax, dword [ebp - 0x174]
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a92cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100a92e3
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 0xc], 0
lea edi, [esi - 0x10]
je 0x100a92f7
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100a930c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0
call fcn.10017de0
mov edi, dword [ebp - 0x170]
mov eax, dword [ebp - 0x178]
add edi, 0x48
add eax, 0x48
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x178], eax
cmp eax, dword [ebp - 0x188]
jne 0x100a8c90
mov edx, dword [ebp - 0x14c]
cmp edx, 8
jb 0x100a9381
mov ecx, dword [ebp - 0x160]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100a9377
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a939e
push edx
push ecx
call fcn.101454bc
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101454ca
mov esp, ebp
pop ebp
ret
call fcn.1018b109
push 0x80004005
call fcn.1001bf60
int3