Function at 0x10009420
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10046d39
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10062698]
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]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x40], 0
mov edx, dword [ecx + 0xb0]
mov dword [ebp - 0x3c], esi
test edx, edx
jne 0x100094b7
call fcn.100018f0
mov ecx, eax
test ecx, ecx
je 0x100097b9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov eax, 0x1004af74
mov dword [ebp - 4], 0
mov ecx, esi
test eax, 0xffff0000
jne 0x100094a4
movzx eax, ax
push eax
call fcn.10007300
mov eax, esi
jmp 0x1000979c
push 0
push 0x1004af74
call fcn.10005170
mov eax, esi
jmp 0x1000979c
cmp dword [ecx + 0xb4], 0x10
lea eax, [ecx + 0xa0]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
jb 0x100094cf
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push edx
push eax
call fcn.10001c50
add esp, 0xc
call fcn.100018f0
mov ecx, eax
test ecx, ecx
je 0x100097c3
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x38], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 4], 1
jge 0x10009524
push 0x104
lea ecx, [ebp - 0x38]
call fcn.10001cd0
mov esi, dword [ebp - 0x38]
cmp dword [esi - 8], 0x104
jl 0x100097cd
xor eax, eax
mov dword [esi - 0xc], 0x104
push 0x104
mov word [esi + 0x208], ax
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.10001ad0
push dword [esi - 8]
push esi
call fcn.10031043
add esp, 0x14
test eax, eax
js 0x100097cd
cmp eax, dword [esi - 8]
jg 0x100097cd
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x24]
push 1
push eax
call fcn.100179c0
add esp, 8
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 3
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x1000959f
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x100095b7
call fcn.100018f0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x100097d7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [ebp - 0x40], 2
lea edi, [eax + 0x10]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], edi
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x28], eax
lea ecx, [eax + 0xe]
test ecx, ecx
js 0x100097e1
mov eax, dword [edi - 8]
mov edx, 1
sub edx, dword [edi - 4]
sub eax, ecx
or eax, edx
jge 0x100095ff
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10001cd0
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
lea eax, [ecx + ecx]
push eax
push dword [ebp - 0x34]
push eax
push edi
call fcn.1000cd80
mov eax, dword [ebp - 0x28]
add esp, 0x10
lea eax, [edi + eax*2]
test eax, eax
jne 0x1000962f
call fcn.10026c87
mov dword [eax], 0x16
call fcn.10026bae
jmp 0x1000963f
push 0x1c
push str._run_mechanism
push eax
call fcn.10023350
add esp, 0xc
mov eax, dword [ebp - 0x28]
add eax, 0xe
cmp eax, dword [edi - 8]
jg 0x100097cd
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
lea edx, [edi - 0x10]
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x44], ecx
cmp edx, ecx
je 0x100096c1
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x34], eax
jl 0x100096b2
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x100096b2
push edx
call fcn.10003d20
mov edx, dword [ebp - 0x34]
or edi, 0xffffffff
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100096a7
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
add eax, 0x10
mov dword [ebp - 0x24], eax
jmp 0x100096c4
push dword [edi - 0xc]
lea ecx, [ebp - 0x24]
push edi
call fcn.10005170
mov edx, dword [ebp - 0x28]
or edi, 0xffffffff
mov byte [ebp - 4], 2
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100096dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x24]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100096f8
cmp dword [ebp + 0xc], eax
je 0x100096f8
push dword [ebp - 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
call fcn.100018f0
mov ecx, eax
test ecx, ecx
je 0x100097eb
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
push esi
push dword [ebp - 0x24]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
push str._s_s
push eax
call fcn.10004090
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x30], eax
call fcn.10003d20
mov ecx, dword [ebp - 0x3c]
add eax, 0x10
mov edx, dword [ebp - 0x30]
add esp, 0x14
mov byte [ebp - 4], 2
mov dword [ecx], eax
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000975f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000977d
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], edi
dec edi
test edi, edi
jg 0x10009799
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x3c]
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.1001b4ae
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.10001ab0
push 0x80004005
call fcn.10001ab0
push 0x80070057
call fcn.10001ab0
push 0x80004005
call fcn.10001ab0
push 0x80070057
call fcn.10001ab0
push 0x80004005
call fcn.10001ab0
int3