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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085d7e
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x100a7274]
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.1000a0bd
mov ecx, eax
test ecx, ecx
je 0x10037a26
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
push 0x100884a4
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
call fcn.10009c4a
test al, al
jne 0x100373e1
push 0
push 0x100884a4
lea ecx, [ebp - 0x224]
call fcn.1000a52f
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
call fcn.10038740
mov edx, dword [0x100ac150]
add esp, 4
mov esi, eax
mov eax, edx
mov ecx, dword [edx + 4]
cmp byte [ecx + 0xd], 0
jne 0x10037423
cmp dword [ecx + 0x10], esi
jge 0x10037410
mov ecx, dword [ecx + 8]
jmp 0x10037414
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x10037406
cmp eax, edx
je 0x10037423
cmp esi, dword [eax + 0x10]
jge 0x10037425
mov eax, edx
cmp edx, eax
je 0x10037438
add eax, 0x14
lea ecx, [ebp - 0x224]
push eax
call fcn.10020620
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], 0
jne 0x100374ad
call fcn.1000a0bd
mov ecx, eax
test ecx, ecx
je 0x10037a30
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x100884a4
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.10009c4a
test al, al
jne 0x1003747f
push 0
push 0x100884a4
mov ecx, edi
call fcn.1000a52f
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 0x10037a08
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x10037a08
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x219]
call fcn.100273f0
lea eax, [esi - 3]
mov byte [ebp - 4], 3
or esi, 0xffffffff
cmp eax, 0x4c
ja case.0x100374d9.4
movzx eax, byte [eax + 0x10037a70]
jmp dword [eax*4 + 0x10037a44]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10025610
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 4
call fcn.10020620
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.10009548
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10031ef0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 5
call fcn.10020620
lea ecx, [ebp - 0x220]
jmp 0x100378b5
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10022590
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call fcn.10020620
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.10009548
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10023d20
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 7
call fcn.10020620
lea ecx, [ebp - 0x220]
jmp 0x100378b5
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10022790
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 8
call fcn.10020620
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.10009548
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10029470
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 9
call fcn.10020620
lea ecx, [ebp - 0x220]
jmp 0x100378b5
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10022590
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xa
call fcn.10020620
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.10009548
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10023d20
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xb
call fcn.10020620
lea ecx, [ebp - 0x220]
jmp 0x100378b5
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10022590
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xc
call fcn.10020620
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.10009548
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10023d20
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xd
call fcn.10020620
lea ecx, [ebp - 0x220]
jmp 0x100378b5
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10022590
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xe
call fcn.10020620
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.10009548
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10023d20
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xf
call fcn.10020620
lea ecx, [ebp - 0x220]
jmp 0x100378b5
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10022790
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x10
call fcn.10020620
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.10009548
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10029470
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x11
call fcn.10020620
lea ecx, [ebp - 0x220]
jmp 0x100378b5
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10026660
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x12
call fcn.10020620
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 0x100377b5
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.100273f0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x13
call fcn.10020620
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.0x100374d9.4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp case.0x100374d9.4
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10027c80
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x14
call fcn.10020620
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.10009548
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10027a60
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x15
call fcn.10020620
lea ecx, [ebp - 0x220]
jmp 0x100378b5
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10034d50
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x16
call fcn.10020620
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.10009548
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x219]
call fcn.10026590
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x17
call fcn.10020620
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 3
call fcn.10009548
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1005a770
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 0x1003791c
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.1000a0bd
mov ecx, eax
test ecx, ecx
je 0x10037a3a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x220]
call fcn.10009c4a
test al, al
jne 0x10037992
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10037970
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.1000a52f
mov ebx, dword [ebp - 0x220]
add ebx, 0xfffffff0
mov byte [ebp - 4], 0x19
push ebx
call fcn.10009c71
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 0x100379c5
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 0x100379e6
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 0x10037a08
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.1003b26e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10009aae
push 0x80004005
call fcn.10009aae
push 0x80004005
call fcn.10009aae
loopne 0x10037aba
add edx, dword [eax]
jne 0x10037a4e
adc byte [ebp + esi*2 + 0x76b61003], bl
add edx, dword [eax]
mov dh, 0x76
add edx, dword [eax]
cli
jne 268663386
adc byte [eax + 0x76], bl
add edx, dword [eax]
jb 0x10037ad5
add edx, dword [eax]
adc al, 0x77
add edx, dword [eax]
add dword [eax + 3], edi
adc byte [eax + edi*2 + 3], bl
adc byte [esi + 0x100378], bh
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
or cl, byte [edx]
add byte [ecx], al
add al, byte [ebx]
add al, 5
push es
pop es
push es
push es
pop es
pop es
pop es
pop es
or byte [esi], al
or byte [esi], al
push es
or dword [esi], eax
int3
add byte [eax], al
mov eax, dword [0x100a7274]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x224], ebx
call fcn.1000a0bd
mov ecx, eax
test ecx, ecx
je 0x10037d8e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x100884a4
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.10009c4a
test al, al
jne 0x10037b41
push 0
push 0x100884a4
lea ecx, [ebp - 0x21c]
call fcn.1000a52f
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
call fcn.10038740
mov edx, dword [0x100ac150]
add esp, 4
mov edi, eax
mov eax, edx
mov ecx, dword [edx + 4]
cmp byte [ecx + 0xd], 0
jne 0x10037b83
cmp dword [ecx + 0x10], edi
jge 0x10037b70
mov ecx, dword [ecx + 8]
jmp 0x10037b74
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x10037b66
cmp eax, edx
je 0x10037b83
cmp edi, dword [eax + 0x10]
jge 0x10037b85
mov eax, edx
cmp edx, eax
je 0x10037b98
add eax, 0x14
lea ecx, [ebp - 0x21c]
push eax
call fcn.10020620
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 0xc], 0
jne 0x10037c07
call fcn.1000a0bd
mov ecx, eax
test ecx, ecx
je 0x10037d98
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x100884a4
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.10009c4a
test al, al
jne 0x10037bdf
push 0
push 0x100884a4
mov ecx, ebx
call fcn.1000a52f
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10037d70
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x10037d70
cmp edi, 0x3f
je 0x10037c4d
cmp edi, 0x43
je 0x10037c4d
cmp edi, 0x42
je 0x10037c4d
cmp edi, 0x44
je 0x10037c4d
cmp edi, 0x45
je 0x10037c4d
cmp edi, 0x47
je 0x10037c4d
cmp edi, 0x48
je 0x10037c4d
cmp edi, 0x49
je 0x10037c4d
cmp edi, 0x4a
je 0x10037c4d
cmp edi, 0x4b
je 0x10037c4d
cmp edi, 0x4d
je 0x10037c4d
cmp edi, 0x4e
je 0x10037c4d
cmp edi, 0x4f
mov edi, 0x1a
jne 0x10037c52
mov edi, 0x1c
push dword [ebp + 0xc]
call fcn.10038740
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1005a770
add esp, 0x10
lea eax, [ebp - 0x218]
push 0
push edi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10037cb0
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
call fcn.1000a0bd
mov ecx, eax
test ecx, ecx
je 0x10037da2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x220]
call fcn.10009c4a
test al, al
jne 0x10037d12
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10037cf0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.1000a52f
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
push eax
mov dword [ebp - 0x224], eax
call fcn.10009c71
mov edx, dword [ebp - 0x224]
add eax, 0x10
or edi, 0xffffffff
mov dword [ebx], eax
add esp, 4
mov byte [ebp - 4], 1
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10037d54
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 0x10037d70
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.1003b26e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10009aae
push 0x80004005
call fcn.10009aae
push 0x80004005
call fcn.10009aae
int3