Function at 0x10090edc
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100affc8
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x100d8344]
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 edi, dword [ebp + 8]
mov dword [ebp - 0x22c], edi
call fcn.10009750
mov ecx, eax
test ecx, ecx
je 0x10091306
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
push 0x100b25c8
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
call fcn.10008de0
test al, al
jne 0x10090d21
push 0
push 0x100b25c8
lea ecx, [ebp - 0x224]
call fcn.1000a3e0
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
call fcn.10091d30
mov edx, dword [0x100e8140]
add esp, 4
mov esi, eax
mov eax, edx
mov ecx, dword [edx + 4]
cmp byte [ecx + 0xd], 0
jne 0x10090d63
cmp dword [ecx + 0x10], esi
jge 0x10090d50
mov ecx, dword [ecx + 8]
jmp 0x10090d54
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x10090d46
cmp eax, edx
je 0x10090d63
cmp esi, dword [eax + 0x10]
jge 0x10090d65
mov eax, edx
cmp edx, eax
je 0x10090d78
add eax, 0x14
lea ecx, [ebp - 0x224]
push eax
call fcn.1000aec0
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], 0
jne 0x10090ded
call fcn.10009750
mov ecx, eax
test ecx, ecx
je 0x10091310
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x100b25c8
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.10008de0
test al, al
jne 0x10090dbf
push 0
push 0x100b25c8
mov ecx, edi
call fcn.1000a3e0
mov esi, dword [ebp - 0x224]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100912e8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x100912e8
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x219]
call fcn.10083ce0
lea eax, [esi - 3]
mov byte [ebp - 4], 3
or esi, 0xffffffff
cmp eax, 0x49
ja case.0x10090e19.4
movzx eax, byte [eax + 0x1009134c]
jmp dword [eax*4 + 0x10091324]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10082040
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 4
call fcn.1000aec0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.10008890
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1008bcd0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 5
call fcn.1000aec0
lea ecx, [ebp - 0x220]
jmp 0x10091193
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1007f8b0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call fcn.1000aec0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.10008890
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10080ad0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 7
call fcn.1000aec0
lea ecx, [ebp - 0x220]
jmp 0x10091193
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1007fc10
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 8
call fcn.1000aec0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.10008890
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100852a0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 9
call fcn.1000aec0
lea ecx, [ebp - 0x220]
jmp 0x10091193
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1007f8b0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xa
call fcn.1000aec0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.10008890
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10080ad0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xb
call fcn.1000aec0
lea ecx, [ebp - 0x220]
jmp 0x10091193
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1007f8b0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xc
call fcn.1000aec0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.10008890
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10080ad0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xd
call fcn.1000aec0
lea ecx, [ebp - 0x220]
jmp 0x10091193
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1007f8b0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xe
call fcn.1000aec0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.10008890
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10080ad0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xf
call fcn.1000aec0
lea ecx, [ebp - 0x220]
jmp 0x10091193
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1007fc10
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x10
call fcn.1000aec0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.10008890
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.100852a0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x11
call fcn.1000aec0
lea ecx, [ebp - 0x220]
jmp 0x10091193
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10082f10
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x12
call fcn.1000aec0
mov edx, dword [ebp - 0x220]
mov eax, esi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100910f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10083ce0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x13
call fcn.1000aec0
mov edx, dword [ebp - 0x220]
mov eax, esi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg case.0x10090e19.4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp case.0x10090e19.4
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10084530
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x14
call fcn.1000aec0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.10008890
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x219]
call fcn.100842b0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x15
call fcn.1000aec0
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 3
call fcn.10008890
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10055290
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp - 0x224]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100911fa
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push dword [ebp - 0x228]
lea eax, [ebp - 0x218]
push eax
call ebx
call fcn.10009750
mov ecx, eax
test ecx, ecx
je 0x1009131a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0x16
push eax
lea ecx, [ebp - 0x220]
call fcn.10008de0
test al, al
jne 0x10091272
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10091250
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.1000a3e0
mov ebx, dword [ebp - 0x220]
add ebx, 0xfffffff0
mov byte [ebp - 4], 0x17
push ebx
call fcn.10008ec0
add eax, 0x10
mov byte [ebp - 4], 3
mov dword [edi], eax
add esp, 4
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x100912a5
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x228]
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100912c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x100912e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.10045358
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10008ce0
push 0x80004005
call fcn.10008ce0
push 0x80004005
call fcn.10008ce0
and byte [esi], cl
or dword [eax], edx
jle 0x10091338
or dword [eax], edx
fmul qword [esi]
or dword [eax], edx
test byte [edi], 9
adc byte [edx], bh
wbinvd
adc byte [eax - 0x4deff6f1], bl
adc byte [ecx], cl
adc byte [eax + edx + 9], dl
cwde
wbinvd
adc byte [edx + 0x54100910], dh
adc byte [ecx], cl
adc byte [edx], bh
adc dword [ecx], ecx
adc byte [ecx + edx + 0x9001009], bl
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [eax], eax
add dword [edx], eax
add eax, dword [eax + 101058310]
pop es
pop es
pop es
pop es
or byte [esi], al
or ah, cl
int3