Function at 0x417520
Capabilities:
Enumerate devices by category
Get common file path
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4ef485
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x470
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x28], edi
cmp dword [edi + 0xf0], ebp
jne 0x417557
mov eax, 1
jmp 0x4189c1
push ebx
push esi
mov esi, dword [0x525d84]
cmp dword [esi - 0xc], ebp
jl 0x417574
lea eax, [esi - 0xc]
mov dword [esp + 0x44], esi
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x417597
mov eax, dword [0x50d0e0]
cmp esi, ebp
mov dword [esp + 0x44], eax
jne 0x417585
xor eax, eax
jmp 0x41758c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [esp + 0x4c]
call fcn.004021f0
mov ecx, dword [esp + 0x44]
push 0x50d1e8
push ecx
mov dword [esp + 0x490], ebp
call fcn.004dec69
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
add esp, 8
test eax, eax
mov ebx, 0x14
je 0x4178e3
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x14], ebp
lea edx, [esp + 0x14]
push edx
push 0x50fee0
push 0x17
push ebp
push 0x4fcbac
call esi
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
push ebp
push edx
mov ecx, dword [eax]
push 0x4fcb7c
push eax
mov byte [esp + 0x498], 3
call dword [ecx + 0xc]
test eax, eax
jl 0x4178a4
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x4178ae
mov dword [esp + 0x10], ebp
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push ebp
push edx
push 1
push eax
mov byte [esp + 0x498], 4
call dword [ecx + 0xc]
test eax, eax
jne 0x41788e
mov ebx, 7
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x4c], ebp
mov ecx, dword [eax]
push ebp
push ebp
push eax
call dword [ecx + 0x50]
test eax, eax
jl 0x4177ef
mov dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
push 0x4fc6cc
mov ecx, dword [eax]
push ebp
push ebp
push eax
mov byte [esp + 0x49c], 5
call dword [ecx + 0x24]
test eax, eax
jl 0x4177d9
mov word [esp + 0x4c], bp
push str.FriendlyName
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x60], esi
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x4c]
push ebp
push edx
mov ecx, dword [eax]
push esi
push eax
mov byte [esp + 0x498], bl
call dword [ecx + 0xc]
push esi
mov byte [esp + 0x48c], 6
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x54]
mov ecx, dword [0x50d0e0]
cmp eax, ebp
mov esi, eax
mov dword [esp + 0x18], ecx
je 0x417727
mov edx, eax
shr edx, 0x10
jne 0x4176eb
and eax, 0xffff
lea ecx, [esp + 0x18]
push eax
call fcn.00407b60
jmp 0x417727
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, ebp
je 0x417723
push edi
lea ecx, [esp + 0x1c]
call fcn.00402190
test eax, eax
je 0x417723
lea ecx, [edi + edi]
lea eax, [edi + edi + 2]
cmp eax, ecx
jb 0x417723
mov edi, dword [esp + 0x18]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x30]
mov eax, dword [0x525d84]
mov byte [esp + 0x488], 8
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.004dec69
add esp, 8
test eax, eax
jne 0x41778e
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
push 0x4fca5c
mov dword [esp + 0x28], 0x14
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebp
mov ecx, dword [eax]
push ebp
push ebp
push eax
call dword [ecx + 0x20]
cmp eax, ebp
jl 0x41778e
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 0xf0]
push edx
mov edx, dword [esp + 0x28]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
cmp eax, ebp
jge 0x41781d
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x4c]
push eax
call esi
mov eax, dword [esp + 0x18]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x488], 6
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4177d2
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4177d2
mov edx, dword [esp + 0x18]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
lea eax, [esp + 0x4c]
push eax
call esi
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x488], 4
cmp eax, ebp
je 0x4177ef
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4177fd
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x10]
push ebp
mov dword [esp + 0x14], ebp
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x41763b
jmp 0x41788e
mov eax, dword [edi + 0x1a8]
lea ecx, [edi + 0x1a0]
lea edx, [esp + 0x1c]
push edx
push 1
push eax
call fcn.004d3e30
mov eax, dword [esp + 0x18]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x488], 6
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41786d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41786d
mov edx, dword [esp + 0x18]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x488], 4
cmp eax, ebp
je 0x41788e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x488], 3
cmp eax, ebp
je 0x4178a4
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebp
mov byte [esp + 0x488], 2
je 0x4178c0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x488], 1
cmp eax, ebp
je 0x4178d6
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov byte [esp + 0x488], 0
mov ebx, 0x14
cmp dword [edi + 0xc98], ebp
je 0x417a98
lea eax, [esp + 0x24]
mov dword [esp + 0x20], ebx
push eax
push 0x4fca5c
push 1
push ebp
push 0x50e9c8
mov dword [esp + 0x38], ebp
mov dword [esp + 0x30], ebp
call esi
cmp eax, ebp
jl 0x41798e
mov eax, dword [edi + 0xf0]
mov edx, dword [esp + 0x24]
push str.VideoAdjust
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebp
jl 0x41797c
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebp
push edx
mov ecx, dword [eax]
push 0x4fb7e0
push eax
call dword [ecx]
cmp eax, ebp
jne 0x417961
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x417961
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x48]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [edi + 0x1a8]
lea ecx, [edi + 0x1a0]
lea edx, [esp + 0x1c]
push edx
push 1
push eax
call fcn.004d3e30
jmp 0x41798e
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x41798e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x24], ebp
cmp dword [esp + 0x490], 0x15
je 0x417a98
mov ecx, dword [edi + 0xcc0]
cmp ecx, ebp
jne 0x417a67
lea edx, [esp + 0x24]
mov dword [esp + 0x1c], 1
push edx
push 0x4fca5c
push 1
push ebp
push 0x50e9d8
call esi
cmp eax, ebp
jl 0x417a3f
mov eax, dword [edi + 0xf0]
mov edx, dword [esp + 0x24]
push str.AudioAdjust
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebp
jl 0x417a55
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ebp
push edx
mov ecx, dword [eax]
push 0x4fb7f0
push eax
call dword [ecx]
cmp eax, ebp
jl 0x417a26
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x417a26
mov dl, byte [0x5257a8]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x417a26
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x28], ebp
mov eax, dword [edi + 0x1a8]
lea ecx, [edi + 0x1a0]
lea edx, [esp + 0x1c]
push edx
push 1
push eax
call fcn.004d3e30
mov eax, dword [esp + 0x24]
mov dword [edi + 0xcc0], eax
mov dword [edi + 0xcb8], 1
jmp 0x417a98
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x417a43
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x417a43
mov eax, dword [edi + 0xf0]
push str.AudioAdjust
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0xc]
cmp eax, ebp
jl 0x417a98
mov eax, dword [edi + 0x1a8]
lea ecx, [edi + 0x1a0]
lea edx, [edi + 0xcb8]
push edx
push 1
push eax
call fcn.004d3e30
cmp dword [edi + 0xc38], ebp
jle 0x417bd7
lea eax, [esp + 0x24]
mov dword [esp + 0x20], ebx
push eax
push 0x4fca5c
push 1
push ebp
push 0x4fcb3c
mov dword [esp + 0x38], ebp
mov dword [esp + 0x30], 6
call esi
cmp eax, ebp
jl 0x417ea0
mov eax, dword [edi + 0xf0]
mov edx, dword [esp + 0x24]
push str.Video_RendererMx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebp
jl 0x417bc6
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ebp
push edx
mov ecx, dword [eax]
push 0x4fc91c
push eax
call dword [ecx]
test eax, eax
jl 0x417b2b
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x417b2b
mov ecx, dword [eax]
push 2
push eax
call dword [ecx + 0x20]
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x417b2b
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebp
push edx
mov ecx, dword [eax]
push 0x4fc92c
push eax
call dword [ecx]
cmp eax, ebp
jl 0x417ba8
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x417ba8
mov edx, dword [edi + 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x28]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x4c]
push eax
push ecx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x4c]
push ecx
push ebp
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 0x18]
push 0xc0c0c
push eax
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x417ba8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x18], ebp
mov eax, dword [edi + 0x1a8]
lea ecx, [edi + 0x1a0]
lea edx, [esp + 0x1c]
push edx
push 1
push eax
call fcn.004d3e30
jmp 0x417ea0
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x417ea0
jmp 0x417e9a
mov eax, dword [0x525de4]
cmp eax, ebp
jle 0x417ea0
cmp eax, 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], 6
jne 0x417c0c
lea edx, [esp + 0x24]
push edx
push 0x4fca5c
push eax
push ebp
push 0x4fcbbc
jmp 0x417c59
cmp eax, 2
jne 0x417c25
lea eax, [esp + 0x24]
push eax
push 0x4fca5c
push 1
push ebp
push 0x4fcb2c
jmp 0x417c59
cmp eax, 3
jne 0x417c3e
lea ecx, [esp + 0x24]
push ecx
push 0x4fca5c
push 1
push ebp
push 0x4fcb1c
jmp 0x417c59
cmp eax, 4
jne 0x417ea0
lea edx, [esp + 0x24]
push edx
push 0x4fca5c
push 1
push ebp
push 0x4fb810
call esi
cmp eax, ebp
jl 0x417ea0
mov eax, dword [0x525de4]
cmp eax, 1
jne 0x417cd5
mov eax, dword [edi + 0xf0]
mov edx, dword [esp + 0x24]
push str.Video_
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebp
jl 0x417e92
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebp
push edx
mov ecx, dword [eax]
push 0x4fc91c
push eax
call dword [ecx]
cmp eax, ebp
jl 0x417e77
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x417e77
mov ecx, dword [eax]
push 4
push eax
call dword [ecx + 0x20]
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x417e77
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x417e77
cmp eax, 2
jne 0x417d42
mov eax, dword [edi + 0xf0]
mov edx, dword [esp + 0x24]
push str.VideoDefault_
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebp
jl 0x417e92
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebp
push edx
mov ecx, dword [eax]
push 0x4fc91c
push eax
call dword [ecx]
cmp eax, ebp
jl 0x417e77
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x417e77
mov ecx, dword [eax]
push 4
push eax
call dword [ecx + 0x20]
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x417e77
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x417e77
cmp eax, 3
jne 0x417daf
mov eax, dword [edi + 0xf0]
mov edx, dword [esp + 0x24]
push str.VideoMixing9_
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebp
jl 0x417e92
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebp
push edx
mov ecx, dword [eax]
push 0x4fc8fc
push eax
call dword [ecx]
cmp eax, ebp
jl 0x417e77
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x417e77
mov ecx, dword [eax]
push 4
push eax
call dword [ecx + 0x20]
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x417e77
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x417e77
cmp eax, 4
jne 0x417e77
mov eax, dword [edi + 0xf0]
mov edx, dword [esp + 0x24]
push str.Enhanced_Video_Renderer_
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebp
jl 0x417e92
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebp
push edx
mov ecx, dword [eax]
push 0x4fb820
push eax
call dword [ecx]
cmp eax, ebp
jl 0x417e77
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x417e77
mov ecx, dword [eax]
lea esi, [edi + 0x114]
push esi
push 0x4fb830
push 0x4fb840
push eax
call dword [ecx + 0xc]
cmp eax, ebp
jl 0x417e69
mov eax, dword [esi]
cmp eax, ebp
je 0x417e69
mov ecx, dword [edi + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
mov eax, dword [edi + 4]
lea edx, [esp + 0x68]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esi]
lea edx, [esp + 0x68]
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0x3f800000
mov dword [esp + 0x58], 0x3f800000
mov ecx, dword [esi]
push edx
push eax
push esi
call dword [ecx + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x417e77
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [edi + 0x1a8]
lea ecx, [edi + 0x1a0]
lea edx, [esp + 0x1c]
push edx
push 1
push eax
call fcn.004d3e30
jmp 0x417ea0
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x417ea0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x34], 0x100
mov dword [esp + 0x38], 0x14
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x2c], 0x50ed00
mov dword [esp + 0x48], ebp
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x490]
cmp dword [eax], edx
jne 0x418964
mov esi, eax
mov eax, dword [0x50d0e0]
mov dword [esp + 0x28], 0xfffffffe
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov ecx, dword [esi + 0x14]
push 1
push 0x50e0a8
mov byte [esp + 0x490], 9
mov edx, dword [ecx + 0x10]
push edx
call fcn.004df918
add esp, 0xc
test eax, eax
jne 0x418015
mov eax, dword [esi + 0x14]
lea edx, [esp + 0x64]
mov ecx, dword [eax + 0x10]
push ecx
push 0x525db4
push edx
call fcn.00402910
mov esi, eax
mov edi, dword [esi]
mov edx, dword [esp + 0x10]
cmp edx, edi
mov byte [esp + 0x488], 0xa
je 0x417fdd
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
test ecx, ecx
mov ecx, dword [0x50d0e4]
jge 0x417f5f
lea ebx, [edx - 0xc]
cmp ebx, ecx
jne 0x417f66
mov ebx, dword [edi - 0xc]
test ebx, ebx
jge 0x417fa1
mov esi, dword [edi - 8]
lea ecx, [esp + 0x10]
push esi
call fcn.004022b0
test eax, eax
je 0x417fdd
mov ecx, dword [esp + 0x10]
lea ebx, [esi + esi]
push ebx
lea eax, [esi + esi + 2]
push edi
push eax
push ecx
call fcn.00402060
mov edx, dword [esp + 0x20]
add esp, 0x10
mov dword [edx - 8], esi
mov eax, dword [esp + 0x10]
mov word [eax + ebx], 0
jmp 0x417fdd
add edx, 0xfffffff4
cmp edx, ecx
je 0x417fcd
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x417fc3
mov ecx, dword [esp + 0x10]
lea eax, [ecx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
mov edx, dword [0x50d0e0]
mov dword [esp + 0x10], edx
mov esi, dword [esi]
mov dword [esp + 0x10], esi
lea eax, [esi - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x64]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x488], 9
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x418336
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x418336
mov edx, dword [esp + 0x64]
jmp 0x41832a
mov eax, dword [esi + 0x14]
push 9
push str._Windows_
mov ecx, dword [eax + 0x10]
push ecx
call fcn.004df918
add esp, 0xc
test eax, eax
jne 0x41823c
mov ecx, 0x82
lea edi, [esp + 0x78]
lea edx, [esp + 0x78]
push 0x104
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [esi + 0x14]
mov ecx, dword [0x50d0e0]
mov esi, dword [eax + 0x10]
mov dword [esp + 0x18], ecx
test esi, esi
je 0x418129
mov edx, esi
shr edx, 0x10
jne 0x4180f7
and esi, 0xffff
lea eax, [esp + 0x280]
mov edi, esi
push 0x100
push eax
push edi
call fcn.004189e0
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x4180ab
lea edx, [esp + 0x280]
lea ecx, [esp + 0x18]
push edx
call fcn.00406e00
jmp 0x418129
push 0x1ff
lea ecx, [esp + 0x1c]
mov esi, 0x200
call fcn.00407d70
test eax, eax
je 0x4180ea
push esi
push eax
push edi
call fcn.004189e0
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x4180ea
add esi, 0x100
lea ecx, [esp + 0x18]
lea edx, [esi - 1]
push edx
call fcn.00407d70
test eax, eax
jne 0x4180c2
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call fcn.00407e30
jmp 0x418129
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x418129
push edi
lea ecx, [esp + 0x1c]
call fcn.00402190
test eax, eax
je 0x418129
mov edx, dword [esp + 0x18]
lea eax, [edi + edi]
push eax
lea ecx, [edi + edi + 2]
push esi
push ecx
push edx
call fcn.00402060
add esp, 0x10
lea eax, [esp + 0x78]
mov byte [esp + 0x488], 0xb
test eax, eax
jne 0x41813d
xor esi, esi
jmp 0x41814a
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 1
jg 0x418159
cmp esi, dword [eax - 4]
jle 0x418174
lea ecx, [esp + 0x10]
call fcn.00402350
push esi
lea ecx, [esp + 0x14]
call fcn.00402190
test eax, eax
je 0x41819c
mov eax, dword [esp + 0x10]
lea edi, [esi + esi]
lea edx, [esp + 0x78]
push edi
lea ecx, [esi + esi + 2]
push edx
push ecx
push eax
call fcn.00402060
mov edx, dword [esp + 0x20]
add esp, 0x10
mov dword [edx - 8], esi
mov eax, dword [esp + 0x10]
mov word [edi + eax], 0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x60]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x18]
add eax, 0xfffffff7
push eax
push edx
call fcn.004071a0
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x48c], 0xc
mov eax, dword [eax - 8]
push eax
call fcn.00407f00
mov eax, dword [esp + 0x60]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x488], 0xb
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x418204
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x418204
mov edx, dword [esp + 0x60]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x488], 9
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x418336
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x418336
mov edx, dword [esp + 0x18]
jmp 0x41832a
mov eax, dword [esi + 0x14]
lea edx, [esp + 0x5c]
mov ecx, dword [eax + 0x10]
push ecx
push 0x525768
push edx
call fcn.00402910
mov esi, eax
mov edi, dword [esi]
mov edx, dword [esp + 0x10]
cmp edx, edi
mov byte [esp + 0x488], 0xd
je 0x4182ff
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
test ecx, ecx
mov ecx, dword [0x50d0e4]
jge 0x418281
lea ebx, [edx - 0xc]
cmp ebx, ecx
jne 0x418288
mov ebx, dword [edi - 0xc]
test ebx, ebx
jge 0x4182c3
mov esi, dword [edi - 8]
lea ecx, [esp + 0x10]
push esi
call fcn.004022b0
test eax, eax
je 0x4182ff
mov ecx, dword [esp + 0x10]
lea ebx, [esi + esi]
push ebx
lea eax, [esi + esi + 2]
push edi
push eax
push ecx
call fcn.00402060
mov edx, dword [esp + 0x20]
add esp, 0x10
mov dword [edx - 8], esi
mov eax, dword [esp + 0x10]
mov word [ebx + eax], 0
jmp 0x4182ff
add edx, 0xfffffff4
cmp edx, ecx
je 0x4182ef
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4182e5
mov ecx, dword [esp + 0x10]
lea eax, [ecx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
mov edx, dword [0x50d0e0]
mov dword [esp + 0x10], edx
mov esi, dword [esi]
mov dword [esp + 0x10], esi
lea eax, [esi - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x5c]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x488], 9
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x418336
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x418336
mov edx, dword [esp + 0x5c]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
mov eax, dword [esp + 0x30]
mov edi, dword [eax + 0xcc8]
mov esi, dword [eax + 0xccc]
mov eax, dword [0x50d0e0]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
cmp edi, esi
mov byte [esp + 0x488], 0xe
je 0x418450
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 8]
push ecx
push eax
call fcn.004dec69
add esp, 8
test eax, eax
je 0x41838a
add edi, 0xc
cmp edi, esi
jne 0x418369
jmp 0x418444
mov edx, dword [edi]
mov dword [esp + 0x1c], edx
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov esi, dword [edi + 8]
cmp edx, esi
je 0x418444
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
test ecx, ecx
mov ecx, dword [0x50d0e4]
jge 0x4183bd
lea ebx, [edx - 0xc]
cmp ebx, ecx
jne 0x4183c4
mov ebx, dword [esi - 0xc]
test ebx, ebx
jge 0x418407
mov ebx, dword [esi - 8]
lea ecx, [esp + 0x24]
push ebx
call fcn.004022b0
test eax, eax
je 0x418444
lea eax, [ebx + ebx]
lea ecx, [ebx + ebx + 2]
cmp ecx, eax
jb 0x4183f4
mov edi, dword [esp + 0x24]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov dword [ecx - 8], ebx
mov edx, dword [esp + 0x24]
mov word [eax + edx], 0
jmp 0x418444
add edx, 0xfffffff4
cmp edx, ecx
je 0x418433
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x418429
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.004de3a6
add esp, 4
mov ecx, dword [0x50d0e0]
mov dword [esp + 0x24], ecx
mov edi, dword [edi + 8]
mov dword [esp + 0x24], edi
lea eax, [edi - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x41868e
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
cmp edi, ebx
mov dword [esp + 0x1c], eax
je 0x41850f
mov eax, dword [edi - 0xc]
mov edx, dword [0x50d0e4]
lea ecx, [edi - 0xc]
test eax, eax
jge 0x418486
lea esi, [edi - 0xc]
cmp esi, edx
jne 0x41848d
mov esi, dword [ebx - 0xc]
test esi, esi
jge 0x4184db
mov esi, dword [ebx - 8]
cmp eax, 1
jg 0x41849a
cmp esi, dword [edi - 4]
jle 0x4184b1
lea ecx, [esp + 0x24]
call fcn.00402350
push esi
lea ecx, [esp + 0x28]
call fcn.00402190
test eax, eax
je 0x41850f
mov ecx, dword [esp + 0x24]
lea edi, [esi + esi]
push edi
lea eax, [esi + esi + 2]
push ebx
push eax
push ecx
call fcn.00402060
mov edx, dword [esp + 0x34]
add esp, 0x10
mov dword [edx - 8], esi
mov eax, dword [esp + 0x24]
mov word [edi + eax], 0
jmp 0x41850f
add edi, 0xfffffff4
cmp edi, edx
je 0x4184fd
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4184fd
mov ecx, dword [esp + 0x24]
lea eax, [ecx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x418542
push str.DllGetClassObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x418663
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x1c], 0
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x488], 9
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41857d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41857d
mov edx, dword [esp + 0x24]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x488], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4185b4
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4185b4
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
mov ebx, dword [esp + 0x28]
xor ebp, ebp
cmp ebx, ebp
jl 0x418964
mov eax, dword [esi + 0xb8]
mov edi, 0x10
cmp eax, edi
mov eax, dword [esp + 0x3c]
jne 0x418703
cmp eax, ebp
je 0x418703
cmp dword [esp + 0x38], ebp
jne 0x418703
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov ecx, dword [eax]
push edx
push 0x4fc9bc
push eax
call dword [ecx]
test eax, eax
jne 0x4186ff
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4186ff
mov ecx, dword [eax]
lea edx, [esi + 0x148]
push edx
mov edx, dword [esi + 0x1b8]
push edx
push eax
call dword [ecx + 0xc]
mov ebx, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov dword [esp + 0x28], ebx
je 0x41863e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x14], ebp
cmp ebx, ebp
jge 0x4186ff
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x418703
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
mov dword [esp + 0x3c], eax
jmp 0x418703
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
push 1
mov eax, dword [esi + 0xccc]
lea ecx, [esi + 0xcc4]
push eax
call fcn.0042d2e0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x418546
jmp 0x418692
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x418546
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x40]
push ecx
push 0x4fc7ac
mov ecx, dword [edx + 0x14]
mov dword [esp + 0x48], 0
push ecx
call eax
test eax, eax
mov dword [esp + 0x28], eax
jl 0x418546
mov eax, dword [esp + 0x40]
test eax, eax
je 0x418546
mov edx, dword [eax]
lea ecx, [esp + 0x3c]
push ecx
push 0x4fca5c
push 0
push eax
call dword [edx + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x418546
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x418546
mov eax, dword [esp + 0x3c]
cmp dword [esi + 0xb8], edi
je 0x418721
cmp dword [esp + 0x38], ebp
jne 0x418721
cmp eax, ebp
je 0x418721
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov dword [esp + 0x3c], eax
cmp ebx, ebp
jl 0x418964
cmp eax, ebp
je 0x418964
mov edi, dword [esp + 0x2c]
mov ecx, dword [esi + 0xf0]
mov edi, dword [edi + 0x14]
mov edx, dword [ecx]
mov edi, dword [edi + 0x14]
push edi
push eax
push ecx
call dword [edx + 0xc]
cmp eax, ebp
mov dword [esp + 0x28], eax
jl 0x418952
mov ecx, dword [esi + 0x1a8]
mov edx, dword [esi + 0x1ac]
add esi, 0x1a0
sub edx, ecx
mov eax, 0x2aaaaaab
mov edi, ecx
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x418873
mov ebx, dword [esi + 4]
cmp ebx, ebp
je 0x4187a6
mov edx, ecx
mov eax, 0x2aaaaaab
sub edx, ebx
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
mov ebp, edx
ja 0x4187ab
mov ebp, 1
test ebx, ebx
jne 0x4187b3
xor edx, edx
jmp 0x4187c5
sub ecx, ebx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea eax, [edx + ebp]
test eax, eax
mov dword [esp + 0x40], eax
jge 0x4187d2
xor eax, eax
lea edx, [eax + eax*2]
shl edx, 2
push edx
call fcn.004de48f
mov ebp, dword [esi + 4]
add esp, 4
cmp ebp, edi
mov dword [esp + 0x10], eax
mov ebx, eax
je 0x418802
push ebp
push ebx
call fcn.00496070
add ebp, 0xc
add esp, 8
add ebx, 0xc
cmp ebp, edi
jne 0x4187ee
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.00496070
lea ebp, [ebx + 0xc]
mov ebx, dword [esi + 8]
add esp, 8
cmp edi, ebx
je 0x41882e
push edi
push ebp
call fcn.00496070
add edi, 0xc
add esp, 8
add ebp, 0xc
cmp edi, ebx
jne 0x41881a
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.0042c050
mov eax, dword [esi + 4]
push eax
call fcn.004de3a6
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x14]
add esp, 4
lea eax, [eax + eax*2]
lea ecx, [edi + eax*4]
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.00428700
inc eax
mov dword [esi + 4], edi
lea edx, [eax + eax*2]
lea eax, [edi + edx*4]
mov dword [esi + 8], eax
jmp 0x418964
mov edx, ecx
mov eax, 0x2aaaaaab
sub edx, edi
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x4188ef
lea edx, [edi + 0xc]
push edx
push ecx
push edi
mov ecx, esi
call fcn.0042d610
mov ebx, dword [esi + 8]
lea eax, [esp + 0x34]
mov ecx, ebx
push eax
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
mov eax, 1
shr ecx, 0x1f
add edx, ecx
mov ecx, esi
sub eax, edx
push eax
push ebx
call fcn.0042d660
mov eax, dword [esi + 8]
cmp edi, eax
je 0x4188e9
mov edx, dword [esp + 0x34]
mov ecx, edi
add edi, 0xc
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
cmp edi, eax
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 8], edx
jne 0x4188cc
add dword [esi + 8], 0xc
jmp 0x418964
lea eax, [ecx - 0xc]
push ecx
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x4c], eax
call fcn.0042d610
mov ecx, dword [esi + 8]
lea eax, [ecx - 0xc]
cmp edi, eax
je 0x418928
sub eax, 0xc
sub ecx, 0xc
mov edx, eax
mov ebx, ecx
cmp eax, edi
mov ebp, dword [edx]
mov dword [ebx], ebp
mov ebp, dword [edx + 4]
mov dword [ebx + 4], ebp
mov edx, dword [edx + 8]
mov dword [ebx + 8], edx
jne 0x41890a
lea eax, [edi + 0xc]
cmp edi, eax
je 0x41894c
mov edx, dword [esp + 0x34]
mov ecx, edi
add edi, 0xc
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
cmp edi, eax
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 8], edx
jne 0x41892f
add dword [esi + 8], 0xc
jmp 0x418964
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x418964
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x3c], ebp
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
inc eax
add edx, 0x18
cmp eax, 0x25
mov dword [esp + 0x48], eax
mov dword [esp + 0x2c], edx
jl 0x417ec0
mov eax, dword [esp + 0x44]
mov ecx, dword [0x50d0e4]
pop esi
mov dword [esp + 0x484], 0xffffffff
lea edx, [eax - 0xc]
pop ebx
cmp edx, ecx
je 0x4189bd
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4189bd
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff4
push eax
call fcn.004de3a6
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x478]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x47c
ret 4