Function at 0x10035210
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082a92
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100a6250]
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 + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0
test esi, esi
je 0x100357e3
call fcn.10031f30
mov ecx, eax
test ecx, ecx
je 0x10035801
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
push dword [esi + 4]
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push 0x1008dbbc
push eax
call fcn.10008f30
mov eax, dword [esi + 8]
add esp, 0xc
test eax, eax
je 0x100352c3
push eax
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push dword [esi + 8]
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
cmp dword [esi + 8], 0
mov edi, eax
mov dword [ebp - 0x3c], edi
je 0x100352b3
test edi, edi
je 0x1003580b
mov esi, dword [ebp - 0x3c]
mov ebx, 1
mov byte [ebp - 4], 1
mov eax, edi
jmp 0x100352ea
push 0x10087e70
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x10035815
mov edi, dword [ebp - 0x3c]
mov ebx, 2
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], ebx
call fcn.10008b60
mov dword [ebp - 4], 3
mov eax, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test bl, 2
je 0x10035312
push esi
and ebx, 0xfffffffd
call eax
mov eax, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 5
test bl, 1
je 0x10035321
push edi
and ebx, 0xfffffffe
call eax
mov edi, dword [ebp - 0x38]
push dword [ebp - 0x48]
mov esi, dword [ebp - 0x44]
push esi
lea ecx, [edi + 0x38]
call fcn.10039840
lea ecx, [edi + 0x38]
call fcn.100399f0
mov eax, edi
mov eax, dword [eax + 0x98]
mov edi, dword [eax]
cmp edi, eax
je 0x1003579a
nop dword [eax]
mov eax, ebx
lea ecx, [edi + 8]
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x50]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0xc]
or ebx, 4
mov byte [ebp - 4], 6
mov dword [ebp - 0x30], ebx
mov ebx, dword [eax]
call fcn.10031f30
mov ecx, eax
test ecx, ecx
je 0x10035801
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 7
test ebx, ebx
je 0x100353c1
test ebx, 0xffff0000
jne 0x100353a9
movzx eax, bx
lea ecx, [ebp - 0x3c]
push eax
call fcn.100336b0
jmp 0x100353cd
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100353b0
sub ecx, edx
sar ecx, 1
jmp 0x100353c3
xor ecx, ecx
push ecx
push ebx
lea ecx, [ebp - 0x3c]
call fcn.10007190
mov ebx, dword [ebp - 0x40]
or ebx, 0xc
mov dword [ebp - 4], 8
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x30], ebx
test esi, esi
je 0x10035801
mov ecx, esi
mov esi, dword [ebp - 0x3c]
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10035416
test dx, dx
je 0x10035412
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10035416
add eax, 4
add ecx, 4
test dx, dx
jne 0x100353f0
xor eax, eax
jmp 0x1003541b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10035474
lea eax, [ebp - 0x4c]
push eax
lea ecx, [edi + 8]
call fcn.10036e60
mov ecx, dword [ebp - 0x48]
or ebx, 0x10
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x30], ebx
test ecx, ecx
je 0x10035801
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10035467
test dx, dx
je 0x10035463
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10035467
add eax, 4
add ecx, 4
test dx, dx
jne 0x10035441
xor eax, eax
jmp 0x1003546c
sbb eax, eax
or eax, 1
mov byte [ebp - 0x29], 1
test eax, eax
je 0x10035478
mov byte [ebp - 0x29], 0
test bl, 0x10
je 0x100354a1
mov edx, dword [ebp - 0x4c]
and ebx, 0xffffffef
mov dword [ebp - 0x40], ebx
add edx, 0xfffffff0
mov dword [ebp - 0x30], ebx
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100354a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x40]
add esi, 0xfffffff0
and eax, 0xfffffff7
mov dword [ebp - 4], 6
mov dword [ebp - 0x30], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100354c9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x50]
mov dword [ebp - 4], 5
and ebx, 0xfffffff3
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp byte [ebp - 0x29], 0
je 0x10035785
lea esi, [edi + 8]
mov ecx, esi
call fcn.10036e40
test eax, eax
je 0x10035717
mov eax, dword [esi]
lea ecx, [ebp - 0x5c]
push ecx
push esi
call dword [eax]
push dword [eax]
or ebx, 0x20
mov byte [ebp - 4], 9
mov dword [ebp - 0x30], ebx
mov esi, ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100355c5
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x8c], 0
je 0x100355c5
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
lea edx, [ebp - 0x58]
push edx
push ecx
call dword [eax + 8]
push dword [eax]
or ebx, 0x40
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x30], ebx
call fcn.10008b60
mov edx, dword [eax]
mov ecx, esi
or ecx, 0xc0
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x30], ecx
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10035580
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10006920
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0xc
push eax
mov eax, dword [ebp - 0x38]
mov ebx, esi
or ebx, 0x1c0
mov dword [ebp - 0x30], ebx
mov ecx, dword [eax + 0x8c]
call fcn.10036740
mov byte [ebp - 0x29], 1
test eax, eax
je 0x100355c9
mov byte [ebp - 0x29], 0
test ebx, 0x100
je 0x100355df
lea ecx, [ebp - 0x28]
and ebx, 0xfffffeff
call fcn.100066d0
mov dword [ebp - 4], 0xa
test bl, bl
jns 0x1003560e
mov edx, dword [ebp - 0x54]
and ebx, 0xffffff7f
mov dword [ebp - 0x30], ebx
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003560e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, 0x40
je 0x1003561f
push dword [ebp - 0x58]
and ebx, 0xffffffbf
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x5c]
mov dword [ebp - 4], 5
and ebx, 0xffffffdf
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp byte [ebp - 0x29], 0
lea esi, [edi + 8]
je 0x1003574e
mov eax, dword [esi]
lea ecx, [ebp - 0x60]
push ecx
push esi
call dword [eax]
push dword [eax]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.10008b60
push dword [ebp - 0x60]
mov byte [ebp - 4], 0xf
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x34]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x10035693
push 0x104
lea ecx, [ebp - 0x34]
call fcn.10007050
mov edx, dword [ebp - 0x34]
cmp dword [edx - 8], 0x104
jl 0x1003581f
mov dword [edx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [ebp - 0x34]
push edx
mov word [eax + 0x208], cx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x34]
push dword [eax - 8]
push eax
call fcn.1004db7a
mov edx, eax
add esp, 8
test edx, edx
js 0x1003581f
mov ecx, dword [ebp - 0x34]
cmp edx, dword [ecx - 8]
jg 0x1003581f
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x34]
mov word [eax + edx*2], cx
push dword [ebp - 0x34]
call fcn.1003df10
mov edx, dword [ebp - 0x34]
add esp, 4
mov byte [ebp - 4], 5
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003574e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1003574e
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x94], 0
je 0x1003574e
mov eax, dword [esi]
lea ecx, [ebp - 0x64]
push ecx
push esi
call dword [eax + 8]
push dword [eax]
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 0x10
mov ecx, dword [eax + 0x94]
call fcn.1003d4d0
push dword [ebp - 0x64]
mov byte [ebp - 4], 5
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edx, dword [edi + 4]
mov ecx, esi
mov eax, dword [edi]
push 0
mov dword [edx], eax
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x38]
dec dword [eax + 0x9c]
mov eax, dword [esi]
call dword [eax + 0x1c]
push 0x3c
push edi
call fcn.1001a759
mov eax, dword [ebp - 0x38]
add esp, 8
mov edi, dword [eax + 0x98]
jmp 0x10035788
mov eax, dword [ebp - 0x38]
mov edi, dword [edi]
mov esi, dword [ebp - 0x44]
cmp edi, dword [eax + 0x98]
je 0x1003579d
jmp 0x10035350
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 4]
add eax, 4
push eax
call dword [ecx]
mov edx, dword [ebp - 0x48]
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100357c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100357e3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.1001a767
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.10006e50
push 0x8007000e
call fcn.10006e50
push 0x8007000e
call fcn.10006e50
push 0x80070057
call fcn.10006e50
int3