Function at 0x403a90
Capabilities:
Get common file path
Query environment variable

Disassembly:
sub esp, 0x130
push ebp
push esi
push edi
push str.WinAviConvert
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x403c9e
push str.WinAviConvert
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0x68
mov dword [esp + 0x18], eax
mov byte [esp + 0x14], 0
call fcn.00403cd0
mov ebp, eax
mov edx, dword [esp + 0x14c]
mov ecx, 0x1a
xor eax, eax
mov edi, ebp
add esp, 4
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 0x410e7c
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403b30
test cl, cl
je 0x403b2c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403b30
add eax, 2
add esi, 2
test cl, cl
jne 0x403b0c
xor eax, eax
jmp 0x403b35
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403b3e
mov byte [esp + 0x10], 1
call fcn.004019d0
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x403b85
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
jmp 0x403bb3
mov eax, dword [0x410d68]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.WinAVIdebug.log
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x38]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004016a0
mov eax, dword [0x410d68]
add esp, 4
lea edx, [esp + 0x38]
mov ecx, dword [eax]
push 0x104
push edx
push str.LOG_FILE_NAME
push eax
call dword [ecx + 0xc]
mov eax, dword [0x410d64]
test eax, eax
jne 0x403c44
mov ecx, 8
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push 0x20
push eax
push str.KSLIBCREATOR_POINTER
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [esp + 0x18]
push ecx
call fcn.00404172
add esp, 4
mov dword [0x410d64], eax
test eax, eax
je 0x403cb6
mov edx, dword [eax]
push 0x434d7bd
push eax
call dword [edx]
mov esi, eax
test esi, esi
je 0x403cb6
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x140]
mov edi, dword [esi]
push ebp
push eax
push 0x65
push ecx
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
push esi
call dword [edi + 0x10]
mov edx, dword [esi]
push esi
call dword [edx + 4]
push ebp
call fcn.00403cde
add esp, 4
call fcn.00402ad0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x130
ret 0x10
push str.WinAVI_Video_Converter
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x403cb6
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x130
ret 0x10