Function at 0x401ac0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x589ed1
mov eax, dword fs:[0]
push eax
sub esp, 0x838
mov eax, dword [0x61c948]
xor eax, esp
mov dword [esp + 0x834], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61c948]
xor eax, esp
push eax
lea eax, [esp + 0x84c]
mov dword fs:[0], eax
call fcn.0045082d
mov eax, dword [eax + 4]
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x2e]
push ebx
push ecx
mov dword [esp + 0x30], eax
mov word [esp + 0x34], bx
call fcn.004727f0
add esp, 0xc
call fcn.0045082d
mov eax, dword [eax + 8]
push 0x104
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push ebx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp eax, ebx
je 0x401b58
push str.Codec
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [esp + 0x18], ebx
call fcn.0045881f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x401d66
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push str.Filter_04d
push edx
mov dword [esp + 0x860], ebx
call fcn.00409fe0
add esp, 0xc
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.0040a190
push 0x5e8d68
mov byte [esp + 0x858], 1
mov ebp, dword [esp + 0x20]
push ebp
push str.CODECS
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.00462161
mov byte [esp + 0x854], 2
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], ebx
je 0x401d70
lea edx, [esp + 0x230]
push edx
lea ecx, [esp + 0x644]
push ecx
push str._______s
push eax
call fcn.00473dbb
add esp, 0x10
cmp eax, 2
jne 0x401cde
push 1
push 0x5e8650
lea ecx, [esp + 0x1c]
call fcn.00408ab0
lea eax, [esp + 0x230]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401c32
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x234]
push edx
lea ecx, [esp + 0x1c]
call fcn.00408ab0
mov ecx, dword [esp + 0x14]
push 0x104
lea eax, [esp + 0x43c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jbe 0x401cde
cmp dword [esp + 0x85c], ebx
lea ecx, [esp + 0x438]
je 0x401cb8
lea edx, [esp + 0x640]
push edx
call fcn.0040ff00
add esp, 4
test eax, eax
je 0x401cde
push 0x5e8654
lea eax, [esp + 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x401cde
lea edi, [esp + 0x438]
call fcn.00410fc0
jmp 0x401cde
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x401cde
push str.DllUnregisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x401cd7
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [esp + 0x854], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401d06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x854], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401d2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x854], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401d54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x18], 1
call fcn.0045881f
cmp eax, ebx
jne 0x401b7b
push 0x80004005
call fcn.0040a460
add eax, 0xfffffff0
mov byte [esp + 0x854], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401d94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x854], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401dbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x854], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401de2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x84c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x834]
xor ecx, esp
call fcn.004721e8
add esp, 0x844
ret 4