Function at 0x100dd310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x4fc], edi
mov dword [ebp - 0x500], 0
test edi, edi
je 0x100dd86d
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100dd344
sub ecx, edx
sar ecx, 1
je 0x100dd86d
mov eax, dword [0x1025952c]
test al, 1
jne 0x100dd39f
or eax, 1
mov dword [0x10259524], 0
mov ecx, 0x10259524
mov dword [0x1025952c], eax
mov dword [0x10259528], 0
call fcn.10027330
push 0x10200f90
mov dword [0x10259524], eax
call fcn.101c8090
mov eax, dword [0x1025952c]
add esp, 4
test al, 2
jne 0x100dd3ee
or eax, 2
mov dword [0x1025952c], eax
xor eax, eax
push eax
push 0x10259530
mov dword [0x10259530], eax
mov dword [0x10259534], eax
mov dword [0x10259538], eax
mov dword [0x1025953c], eax
mov dword [0x10259540], eax
mov dword [0x10259544], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x100dd3e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10200f50
call fcn.101c8090
add esp, 4
push ebx
push esi
push 0x10259530
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x10259528], 0
jne 0x100dd6eb
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 sub.msvcrt.dll_memset
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
xor esi, esi
or edi, 0xffffffff
lea esp, [esp]
push 0
push dword [ebp + esi*4 - 0x4f4]
lea eax, [ebp - 0x414]
push eax
push 0
call ebx
test eax, eax
je 0x100dd6db
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.101e7180
add esp, 8
lea eax, [ebp - 0x414]
lea ecx, [ebp - 0x4f8]
push eax
call fcn.10002490
push dword [ebp - 0x504]
lea eax, [ebp - 0x4f8]
mov ecx, 0x10259524
push eax
push 0
lea eax, [ebp - 0x508]
push eax
call fcn.1001f820
mov edx, dword [ebp - 0x4f8]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100dd6db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, 0x38
jb 0x100dd660
mov edi, dword [ebp - 0x4fc]
cmp dword [ebp + 0xc], 0
jne 0x100dd745
push edi
lea ecx, [ebp - 0x504]
call fcn.10002490
mov esi, eax
mov edx, 1
mov ebx, dword [esi]
mov ecx, dword [ebx - 8]
mov edi, dword [ebx - 0xc]
sub ecx, edi
sub edx, dword [ebx - 4]
or edx, ecx
jge 0x100dd71f
push edi
mov ecx, esi
call fcn.10003310
mov ebx, dword [esi]
lea eax, [edi + 1]
push eax
push ebx
call fcn.101e7180
mov eax, dword [esi]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x500], 1
mov dword [eax - 0xc], edi
mov eax, dword [esi]
mov word [eax + edi*2], cx
mov edi, dword [esi]
push edi
lea ecx, [ebp - 0x4fc]
call fcn.10002490
mov ebx, dword [0x10259524]
mov eax, dword [ebp - 0x4fc]
mov edi, dword [ebx + 4]
cmp byte [edi + 0xd], 0
jne 0x100dd7ff
lea ebx, [ebx]
mov ecx, dword [edi + 0x10]
mov edx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x100dd79b
test si, si
je 0x100dd797
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x100dd79b
add ecx, 4
add edx, 4
test si, si
jne 0x100dd775
xor ecx, ecx
jmp 0x100dd7a0
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jns 0x100dd7a9
mov edi, dword [edi + 8]
jmp 0x100dd7ad
mov ebx, edi
mov edi, dword [edi]
cmp byte [edi + 0xd], 0
je 0x100dd770
mov edi, dword [0x10259524]
mov dword [ebp - 0x4f8], ebx
cmp ebx, edi
je 0x100dd805
mov edx, dword [ebx + 0x10]
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x100dd7ee
test si, si
je 0x100dd7ea
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x100dd7ee
add ecx, 4
add edx, 4
test si, si
jne 0x100dd7c8
xor ecx, ecx
jmp 0x100dd7f3
sbb ecx, ecx
or ecx, 1
test ecx, ecx
js 0x100dd805
mov ecx, dword [ebp - 0x4f8]
jmp 0x100dd807
mov edi, dword [0x10259524]
mov ecx, edi
xor ebx, ebx
lea edx, [eax - 0x10]
cmp ecx, edi
setne bl
or ecx, 0xffffffff
mov eax, ecx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100dd82b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
test byte [ebp - 0x500], 1
je 0x100dd84f
mov eax, dword [ebp - 0x504]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x100dd84f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
push 0x10259530
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, ebx
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret