Function at 0x10096b60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018ee50
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x101ed40c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], esi
mov eax, dword [edi]
mov dword [ebp - 0x2c], edi
cmp dword [eax - 0xc], 0
jl 0x10096bd1
push 0x101a39ec
push eax
call fcn.1014e03d
mov edi, eax
add esp, 8
test edi, edi
jne 0x10096bbc
mov edi, dword [ebp - 0x2c]
mov eax, dword [edi]
jmp 0x10096bd1
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
sub edi, eax
sar edi, 1
cmp edi, 0xffffffff
jne 0x10096cce
mov edi, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x30]
call fcn.10041f60
mov eax, dword [ebp - 0x30]
mov ecx, str..ico
mov dword [ebp - 4], 0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10096c1d
test dx, dx
je 0x10096c19
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10096c1d
add eax, 4
add ecx, 4
test dx, dx
jne 0x10096bf7
xor eax, eax
jmp 0x10096c22
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10096c39
push 0x10
push 0x30
push 0x30
push 1
push dword [edi]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
jmp 0x10096c9e
mov edx, dword [edi]
xor eax, eax
mov ecx, edx
mov word [ebp - 0x58], ax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x34], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10096c57
sub ecx, dword [ebp - 0x34]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.10044c60
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
call fcn.10091bf0
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x58]
call fcn.100424a0
cmp dword [ebp - 0x2c], 0
jne 0x10096ca1
push 0
push dword [edi]
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconW]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x30]
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10096d5e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10096d5e
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x38]
push edi
push eax
mov ecx, esi
mov dword [ebp - 0x38], 0
call fcn.1005e000
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 4], 2
mov dword [ebp - 0x30], 0
mov eax, dword [eax - 0xc]
sub eax, edi
dec eax
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.1005e4c0
mov esi, dword [ebp - 0x30]
push esi
call fcn.10157000
mov edi, dword [ebp - 0x38]
add esp, 4
push eax
push edi
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconW]
mov dword [ebp - 0x2c], eax
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10096d3a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10096d5b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x34]
cmp dword [ebp - 0x2c], 0
je 0x10096e99
lea eax, [ebp - 0x3c]
push eax
call fcn.10097720
push str.popfiles
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 3
push eax
call fcn.1004e6f0
add esp, 0x10
mov edx, dword [eax]
xor eax, eax
mov ecx, edx
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x34], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10096db0
sub ecx, dword [ebp - 0x34]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10044c60
mov edx, dword [ebp - 0x40]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10096de8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3c]
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10096e04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10096e2e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 9
push 0x101a39f0
lea ecx, [ebp - 0x28]
call fcn.10087570
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
cmovae eax, dword [ebp - 0x28]
push eax
push edi
call fcn.10092cd0
add esp, 8
push edi
call dword [sym.imp.USER32.dll_DestroyIcon]
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x28]
mov dword [esi + 0x14], 0
xor eax, eax
movups xmmword [esi], xmm0
mov word [ebp - 0x28], ax
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.100424a0
jmp 0x10096eb9
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
push 0x1019e5ec
mov word [esi], ax
call fcn.10044c60
mov eax, esi
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.10126919
mov esp, ebp
pop ebp
ret