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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006083e
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x10087354]
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.10007316
mov ecx, eax
test ecx, ecx
je 0x10029090
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
push 0x10062454
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
call fcn.10006e0e
test al, al
jne 0x10028a81
push 0
push 0x10062454
lea ecx, [ebp - 0x224]
call fcn.1000778f
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
call fcn.10029d60
mov edx, dword [0x1008ac70]
add esp, 4
mov esi, eax
mov eax, edx
mov ecx, dword [edx + 4]
cmp byte [ecx + 0xd], 0
jne 0x10028ac3
cmp dword [ecx + 0x10], esi
jge 0x10028ab0
mov ecx, dword [ecx + 8]
jmp 0x10028ab4
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x10028aa6
cmp eax, edx
je 0x10028ac3
cmp esi, dword [eax + 0x10]
jge 0x10028ac5
mov eax, edx
cmp edx, eax
je 0x10028ad8
add eax, 0x14
lea ecx, [ebp - 0x224]
push eax
call fcn.10019e70
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], 0
jne 0x10028b4d
call fcn.10007316
mov ecx, eax
test ecx, ecx
je 0x1002909a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x10062454
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.10006e0e
test al, al
jne 0x10028b1f
push 0
push 0x10062454
mov ecx, edi
call fcn.1000778f
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 0x10029072
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x10029072
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x219]
call fcn.1001e490
add esi, 0xfffffffd
mov byte [ebp - 4], 3
cmp esi, 0x43
ja case.0x10028b76.4
movzx eax, byte [esi + 0x100290dc]
jmp dword [eax*4 + 0x100290b0]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1001dea0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 4
call fcn.10019e70
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.1000674e
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.10024a90
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 5
call fcn.10019e70
lea ecx, [ebp - 0x220]
jmp 0x10028f21
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1001bde0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call fcn.10019e70
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.1000674e
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1001cd40
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 7
call fcn.10019e70
lea ecx, [ebp - 0x220]
jmp 0x10028f21
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1001bea0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 8
call fcn.10019e70
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.1000674e
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1001f730
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 9
call fcn.10019e70
lea ecx, [ebp - 0x220]
jmp 0x10028f21
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1001bde0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xa
call fcn.10019e70
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.1000674e
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1001cd40
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xb
call fcn.10019e70
lea ecx, [ebp - 0x220]
jmp 0x10028f21
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1001bde0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xc
call fcn.10019e70
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.1000674e
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1001cd40
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xd
call fcn.10019e70
lea ecx, [ebp - 0x220]
jmp 0x10028f21
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1001bde0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xe
call fcn.10019e70
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.1000674e
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1001cd40
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xf
call fcn.10019e70
lea ecx, [ebp - 0x220]
jmp 0x10028f21
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1001bea0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x10
call fcn.10019e70
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.1000674e
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1001f730
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x11
call fcn.10019e70
lea ecx, [ebp - 0x220]
jmp 0x10028f21
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1001e570
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x12
call fcn.10019e70
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.1000674e
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1001e490
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x13
call fcn.10019e70
lea ecx, [ebp - 0x220]
jmp 0x10028f21
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1001e570
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x14
call fcn.10019e70
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.1000674e
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1001e490
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x15
call fcn.10019e70
lea ecx, [ebp - 0x220]
jmp 0x10028f21
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1001e570
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x16
call fcn.10019e70
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.1000674e
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x219]
call fcn.1001e490
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x17
call fcn.10019e70
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 3
call fcn.1000674e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10036470
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 esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10028f88
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 esi
call fcn.10007316
mov ecx, eax
test ecx, ecx
je 0x100290a4
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.10006e0e
test al, al
jne 0x10028ff9
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10028fd7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.1000778f
mov ebx, dword [ebp - 0x220]
add ebx, 0xfffffff0
mov byte [ebp - 4], 0x19
push ebx
call fcn.10006e35
add eax, 0x10
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov dword [edi], eax
add esp, 4
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x1002902f
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
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10029050
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 0x10029072
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.1002c88e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10006c72
push 0x80004005
call fcn.10006c72
push 0x80004005
call fcn.10006c72
nop
jge 0x1002903d
add dl, byte [eax]
fisttp dword [ebx - 0x73c6effe]
add dl, byte [eax]
push ebx
lea eax, [edx]
adc byte [edi - 0xaeffd74], dl
mov word [edx], es
adc byte [edi], cl
mov es, word [edx]
adc byte [ecx + 0x6d10028d], dh
mov es, word [edx]
adc al, cl
mov es, word [edx]
adc byte [edx], ch
pop dword [edx]
adc byte [eax], al
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
or byte [ecx], cl
pop es