Function at 0x10037100
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc64
mov eax, dword [0x1003e4a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0xc64], eax
mov esi, edx
mov eax, dword [ebp + 0x18]
mov edx, 0x800a0bb8
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0xc58], eax
xor eax, eax
mov dword [ebp - 0xc5c], ebx
mov dword [ebp - 0xc60], 0x12ee40
lea esp, [esp]
cmp edx, ecx
je 0x10037162
mov edx, dword [eax*8 + 0x1000b4e8]
inc eax
test edx, edx
jne 0x10037150
jmp 0x1003716f
mov eax, dword [eax*8 + 0x1000b4e4]
mov dword [ebp - 0xc60], eax
test ebx, ebx
jne 0x10037183
cmp dword [ebp - 0xc58], ebx
jne 0x10037183
test edi, edi
je 0x10037322
cmp byte [0x1003e874], 0
movzx ebx, cx
jne 0x1003719b
mov byte [0x1003e874], 1
call fcn.10035fc0
push 0x400
lea eax, [ebp - 0xc54]
push eax
mov eax, dword [0x1003e830]
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_LoadStringW]
mov ebx, eax
test ebx, ebx
je 0x1003721f
cmp dword [ebp - 0xc5c], 0
je 0x1003721f
lea eax, [ebp - 0xc54]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 0xc5c]
mov dword [ecx], eax
test eax, eax
jne 0x1003721f
test byte [0x1003e864], 2
je 0x10037209
push 0x902
push 0x8007000e
push 0x1000b3e8
push 0x240809
mov eax, dword [0x10040118]
push eax
call fcn.1000d160
add esp, 0x14
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003ad10
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xc58], 0
je 0x10037316
test ebx, ebx
je 0x10037316
mov eax, dword [0x1000b444]
mov dword [ebp - 0x14], eax
mov eax, dword [0x1000b448]
mov dword [ebp - 0x10], eax
mov eax, dword [0x1000b44c]
mov dword [ebp - 0xc], eax
mov ax, word [0x1000b450]
push 0x20a
mov word [ebp - 8], ax
lea eax, [ebp - 0x220]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x230
lea eax, [ebp - 0x450]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x220]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, 0x105
jbe 0x100372ae
pop edi
pop esi
mov eax, 0x80010135
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003ad10
mov esp, ebp
pop ebp
ret
push 0x1000bc50
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x220]
push eax
push 0x1000b454
lea eax, [ebp - 0x450]
push 0x118
push eax
call fcn.10037c70
add esp, 0x18
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edx, dword [ebp - 0xc58]
mov dword [edx], eax
test eax, eax
jne 0x10037316
test byte [0x1003e864], 2
je 0x10037209
push 0x91b
push 0x8007000e
push 0x1000b3e8
push 0x246c09
jmp 0x100371fb
test edi, edi
je 0x10037322
mov eax, dword [ebp - 0xc60]
mov dword [edi], eax
mov ebx, dword [ebp - 0xc64]
test ebx, ebx
je 0x100373c9
xor edx, edx
xor ecx, ecx
mov eax, dword [ecx + 0x1003e240]
cmp esi, dword [eax]
je 0x10037381
add ecx, 0xc
inc edx
cmp ecx, 0x24c
jb 0x10037334
push 0x1000b008
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx], eax
test eax, eax
jne 0x100373c9
test byte [0x1003e864], 2
je 0x10037209
push 0x936
push 0x8007000e
push 0x1000b3e8
push 0x24d809
jmp 0x100371fb
cmp edx, 0x31
jae 0x1003734a
lea eax, [edx + edx*2]
push dword [eax*4 + 0x1003e244]
push dword [eax*4 + 0x1003e248]
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebx], eax
test eax, eax
jne 0x100373c9
test byte [0x1003e864], 2
je 0x10037209
push 0x92f
push 0x8007000e
push 0x1000b3e8
push 0x24bc09
jmp 0x100371fb
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003ad10
mov esp, ebp
pop ebp
ret