Function at 0x100e8230
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x500], ebx
mov dword [ebp - 0x504], 0
test ebx, ebx
je 0x100e886f
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e8264
sub ecx, edx
sar ecx, 1
je 0x100e886f
mov eax, dword [0x10258368]
test al, 1
jne 0x100e82ca
or eax, 1
mov dword [0x10258360], 0
push 0x14
mov dword [0x10258368], eax
mov dword [0x10258364], 0
call fcn.10213511
push 0x102177b0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x10258360], eax
call fcn.101e22c0
mov eax, dword [0x10258368]
add esp, 8
test al, 2
jne 0x100e82ed
or eax, 2
mov ecx, 0x1025836c
mov dword [0x10258368], eax
call fcn.1007bd80
push 0x10217770
call fcn.101e22c0
add esp, 4
push esi
push edi
push 0x1025836c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x10258364], 0
jne 0x100e86cd
push 0x410
lea eax, [ebp - 0x414]
mov dword [ebp - 0x4f4], 0
push 0
push eax
mov dword [ebp - 0x4f0], 1
mov dword [ebp - 0x4ec], 2
mov dword [ebp - 0x4e8], 3
mov dword [ebp - 0x4e4], 4
mov dword [ebp - 0x4e0], 5
mov dword [ebp - 0x4dc], 6
mov dword [ebp - 0x4d8], 7
mov dword [ebp - 0x4d4], 8
mov dword [ebp - 0x4d0], 9
mov dword [ebp - 0x4cc], 0xa
mov dword [ebp - 0x4c8], 0xb
mov dword [ebp - 0x4c4], 5
mov dword [ebp - 0x4c0], 0xd
mov dword [ebp - 0x4bc], 0xe
mov dword [ebp - 0x4b8], 0x10
mov dword [ebp - 0x4b4], 0x11
mov dword [ebp - 0x4b0], 0x12
mov dword [ebp - 0x4ac], 0x13
mov dword [ebp - 0x4a8], 0x14
mov dword [ebp - 0x4a4], 0x15
mov dword [ebp - 0x4a0], 0x16
mov dword [ebp - 0x49c], 0x17
mov dword [ebp - 0x498], 0x18
mov dword [ebp - 0x494], 0x19
mov dword [ebp - 0x490], 0x1a
mov dword [ebp - 0x48c], 0x1b
mov dword [ebp - 0x488], 0x1c
mov dword [ebp - 0x484], 0x1d
mov dword [ebp - 0x480], 0x1e
mov dword [ebp - 0x47c], 0x1f
mov dword [ebp - 0x478], 0x20
mov dword [ebp - 0x474], 0x21
mov dword [ebp - 0x470], 0x22
mov dword [ebp - 0x46c], 0x23
mov dword [ebp - 0x468], 0x24
mov dword [ebp - 0x464], 0x25
mov dword [ebp - 0x460], 0x26
mov dword [ebp - 0x45c], 0x27
mov dword [ebp - 0x458], 0x28
mov dword [ebp - 0x454], 0x29
mov dword [ebp - 0x450], 0x2a
mov dword [ebp - 0x44c], 0x2b
mov dword [ebp - 0x448], 0x2c
mov dword [ebp - 0x444], 0x2d
mov dword [ebp - 0x440], 0x2e
mov dword [ebp - 0x43c], 0x2f
mov dword [ebp - 0x438], 0x30
mov dword [ebp - 0x434], 0x31
mov dword [ebp - 0x430], 0x35
mov dword [ebp - 0x42c], 0x36
mov dword [ebp - 0x428], 0x37
mov dword [ebp - 0x424], 0x38
mov dword [ebp - 0x420], 0x39
mov dword [ebp - 0x41c], 0x3a
mov dword [ebp - 0x418], 0x3b
call fcn.102134e7
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 0x4fc], ebx
jmp 0x100e8560
push 0
push dword [ebp + ebx*4 - 0x4f4]
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100e86b7
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.10201330
add esp, 8
call fcn.10003980
test eax, eax
je 0x100e8885
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x4f8]
mov dword [ebp - 0x4f8], eax
lea eax, [ebp - 0x414]
push eax
call fcn.10004a70
test al, al
jne 0x100e85f2
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e85d0
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4f8]
call fcn.10004050
lea eax, [ebp - 0x4f8]
mov ecx, 0x10258360
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.10020fd0
mov esi, dword [ebp - 0x4f8]
mov ecx, dword [eax]
mov dword [ebp - 0x508], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x50c], ecx
cmp byte [eax + 0xd], 0
jne 0x100e8643
add eax, 0x10
mov ecx, 0x10258360
push eax
lea eax, [ebp - 0x4f8]
push eax
call fcn.10023540
test al, al
je 0x100e869f
cmp dword [0x10258364], 0xccccccc
je 0x100e8880
mov ebx, dword [0x10258360]
push 0x14
call fcn.10213511
lea ecx, [esi - 0x10]
mov edi, eax
push ecx
call fcn.10004ba0
add esp, 8
add eax, 0x10
mov dword [edi + 0x10], eax
mov ecx, 0x10258360
mov dword [edi], ebx
mov dword [edi + 4], ebx
push edi
push dword [ebp - 0x50c]
mov dword [edi + 8], ebx
push dword [ebp - 0x508]
mov word [edi + 0xc], 0
call fcn.10007940
mov ebx, dword [ebp - 0x4fc]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100e86b7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
mov dword [ebp - 0x4fc], ebx
cmp ebx, 0x38
jb 0x100e8560
mov ebx, dword [ebp - 0x500]
cmp dword [ebp + 0xc], 0
jne 0x100e8738
call fcn.10003980
test eax, eax
je 0x100e8885
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x4fc]
push ebx
mov dword [ebp - 0x4fc], eax
call fcn.10004a70
test al, al
jne 0x100e8721
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e8705
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x4fc]
call fcn.10004050
lea ecx, [ebp - 0x4fc]
call fcn.10005080
mov dword [ebp - 0x504], 1
mov ebx, dword [eax]
call fcn.10003980
test eax, eax
je 0x100e8885
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x4f8]
push ebx
mov dword [ebp - 0x4f8], eax
call fcn.10004a70
test al, al
jne 0x100e878e
test ebx, ebx
jne 0x100e876d
xor ecx, ecx
jmp 0x100e8781
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e8772
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x4f8]
call fcn.10004050
mov eax, dword [0x10258360]
mov ecx, 0x10258360
mov dword [ebp - 0x500], eax
lea eax, [ebp - 0x4f8]
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.10020fd0
mov edi, dword [ebp - 0x510]
mov eax, dword [ebp - 0x4f8]
cmp byte [edi + 0xd], 0
jne 0x100e87ff
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x100e8885
mov edx, eax
mov si, word [edx]
cmp si, word [ecx]
jne 0x100e87f6
test si, si
je 0x100e87f2
mov si, word [edx + 2]
cmp si, word [ecx + 2]
jne 0x100e87f6
add edx, 4
add ecx, 4
test si, si
jne 0x100e87d0
xor ecx, ecx
jmp 0x100e87fb
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jns 0x100e8805
mov edi, dword [0x10258360]
xor ebx, ebx
lea edx, [eax - 0x10]
cmp edi, dword [ebp - 0x500]
setne bl
or ecx, 0xffffffff
mov eax, ecx
lock xadd dword [edx + 0xc], eax
dec eax
pop edi
pop esi
test eax, eax
jg 0x100e882f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
test byte [ebp - 0x504], 1
je 0x100e8853
mov eax, dword [ebp - 0x4fc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x100e8853
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
push 0x1025836c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret
call fcn.10007b50
push 0x80004005
call fcn.100030c0
int3