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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1020e1b1
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x10283a3c]
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, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x164], eax
call fcn.1004d290
mov edx, eax
mov dword [ebp - 0x150], 0
mov ecx, edx
mov dword [ebp - 0x14c], 0
xor eax, eax
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 7
mov word [ebp - 0x160], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e7966
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x160]
call fcn.10027e50
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x190], ecx
cmp eax, ecx
je 0x100e802c
lea ebx, [eax + 0x44]
mov dword [ebp - 0x180], ebx
nop dword [eax + eax]
mov byte [ebp - 4], 1
xor eax, eax
mov edi, dword [ebp - 0x164]
lea ecx, [ebp - 0x148]
or edi, 1
mov word [ebp - 0x148], ax
mov dword [ebp - 0x164], edi
mov esi, dword [ebp - 0x150]
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x138], 0
lea eax, [esi + 1]
mov dword [ebp - 0x134], 7
push eax
call fcn.1002c550
cmp dword [ebp - 0x14c], 8
lea eax, [ebp - 0x160]
push esi
cmovae eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x148]
push eax
call fcn.1002c370
push 1
push 0x1021e000
lea ecx, [ebp - 0x148]
call fcn.1002c370
push dword [ebp - 0x17c]
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.100e68f0
add esp, 0xc
mov byte [ebp - 4], 2
and edi, 0xfffffffe
mov dword [ebp - 0x164], edi
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x134]
cmp edx, 8
jb 0x100e7aa9
mov ecx, dword [ebp - 0x148]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100e7a9f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100e8066
push edx
push ecx
call fcn.1017033c
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.10029e80
mov ecx, eax
test ecx, ecx
je 0x100e805c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x170], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x170]
push esi
call fcn.10029630
test al, al
jne 0x100e7b3c
test esi, esi
jne 0x100e7b13
xor ecx, ecx
jmp 0x100e7b2f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e7b20
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x170]
call fcn.1002b150
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x170]
add edi, 0xfffffff0
push edi
call fcn.10029760
add eax, 0x10
add esp, 4
mov dword [ebp - 0x184], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x184]
mov eax, dword [ebp - 0x164]
push 0x10224c2c
or eax, 4
push str..tpi
mov dword [ebp - 0x164], eax
call fcn.1002aa30
mov esi, dword [ebp - 0x184]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100e7b9d
push esi
call fcn.100544f0
add esp, 4
and dword [ebp - 0x164], 0xfffffffb
mov byte [ebp - 4], 5
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100e7bc0
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 0x100e7bd9
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 0x100e7c5d
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x11c]
cmp edx, 8
jb 0x100e7c3b
mov ecx, dword [ebp - 0x130]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100e7c31
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100e8066
push edx
push ecx
call fcn.1017033c
add esp, 8
xor eax, eax
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 7
mov word [ebp - 0x130], ax
jmp 0x100e8008
cmp dword [ebx - 0x1c], 0
je 0x100e7dcb
call fcn.10029e80
mov ecx, eax
test ecx, ecx
je 0x100e805c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x188], eax
mov byte [ebp - 4], 0xb
lea esi, [ebp - 0x130]
cmp dword [ebp - 0x11c], 8
cmovae esi, dword [ebp - 0x130]
call fcn.10029e80
mov ecx, eax
test ecx, ecx
je 0x100e805c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x168], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x168]
push esi
call fcn.10029630
test al, al
jne 0x100e7cfc
test esi, esi
jne 0x100e7cd5
xor ecx, ecx
jmp 0x100e7cef
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e7ce0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x168]
call fcn.1002b150
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x168]
push eax
call fcn.10029f70
add esp, 8
mov byte [ebp - 4], 0xb
or eax, 0xffffffff
mov edx, dword [ebp - 0x168]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100e7d38
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx - 0x18], 8
lea ecx, [ebx - 0x2c]
jb 0x100e7d43
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x188]
mov edx, eax
nop dword [eax + eax]
mov si, word [ecx]
cmp si, word [edx]
jne 0x100e7d76
test si, si
je 0x100e7d72
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x100e7d76
add ecx, 4
add edx, 4
test si, si
jne 0x100e7d50
xor ecx, ecx
jmp 0x100e7d7b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x100e7daf
mov byte [ebp - 4], 3
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100e7d9b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call fcn.10020960
jmp 0x100e8008
mov byte [ebp - 4], 3
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100e7dcb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx - 4], 0
je 0x100e7e5e
push 0x105
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.101be270
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.101951a0
add esp, 0x18
lea eax, [ebx - 0x14]
cmp dword [ebx], 0x10
jb 0x100e7e1b
mov eax, dword [eax]
lea ecx, [ebp - 0x118]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x100e7e41
test dl, dl
je 0x100e7e3d
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x100e7e41
add ecx, 2
add eax, 2
test dl, dl
jne 0x100e7e21
xor eax, eax
jmp 0x100e7e46
sbb eax, eax
or eax, 1
test eax, eax
je 0x100e7e5e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call fcn.10020960
jmp 0x100e8008
call fcn.10029e80
mov ecx, eax
test ecx, ecx
je 0x100e805c
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x174], esi
mov byte [ebp - 4], 0x12
lea edi, [ebp - 0x130]
cmp dword [ebp - 0x11c], 8
cmovae edi, dword [ebp - 0x130]
call fcn.10029e80
mov ecx, eax
test ecx, ecx
je 0x100e805c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x16c], eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x16c]
push edi
call fcn.10029630
test al, al
jne 0x100e7eed
test edi, edi
jne 0x100e7ecc
xor ecx, ecx
jmp 0x100e7ee0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e7ed1
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x16c]
call fcn.1002b150
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x178]
push eax
call fcn.100e7850
add esp, 8
mov byte [ebp - 4], 0x15
push dword [ebp - 0x178]
mov edi, dword [ebp - 0x16c]
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [ebp - 0x178]
lea ebx, [esi - 0x10]
lea edx, [eax - 0x10]
cmp edx, ebx
je 0x100e7f86
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x100e7f71
mov ecx, dword [edx]
cmp ecx, dword [ebx]
jne 0x100e7f71
push edx
call fcn.10029760
add esp, 4
mov dword [ebp - 0x18c], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x100e7f66
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x174], esi
jmp 0x100e7f86
push dword [eax - 0xc]
lea ecx, [ebp - 0x174]
push eax
call fcn.1002b150
mov esi, dword [ebp - 0x174]
mov byte [ebp - 4], 0x14
or eax, 0xffffffff
mov edx, dword [ebp - 0x178]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100e7fa8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x12
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100e7fc4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 0xc], 0
jne 0x100e7fcc
jmp 0x100e7fd7
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 3
or eax, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100e7ff3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call fcn.10020960
mov ebx, dword [ebp - 0x180]
mov eax, dword [ebp - 0x17c]
add ebx, 0x48
add eax, 0x48
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x17c], eax
cmp eax, dword [ebp - 0x190]
jne 0x100e79b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call fcn.10020960
mov al, 1
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.1017034a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100253e0
call fcn.101c1b70
int3