Function at 0x402da0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x24
push ebx
mov ebx, ecx
push ebp
xor ebp, ebp
mov eax, dword [ebx + 0x74]
push esi
cmp eax, ebp
push edi
mov dword [esp + 0x1c], ebx
je 0x4031b5
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0x54], ebp
cmp eax, ebp
je 0x4031b5
mov eax, dword [ebx + 0x6c]
cmp eax, ebp
je 0x4031b5
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
lea edi, [ebx + 0x58]
mov dword [esp + 0x20], ebp
cmp edi, ebp
je 0x402de9
lea eax, [edi + 4]
jmp 0x402deb
xor eax, eax
push eax
lea ecx, [esp + 0x34]
call fcn.00406370
lea eax, [esp + 0x2c]
lea edx, [esp + 0x30]
neg eax
sbb eax, eax
mov dword [esp + 0x2c], 0x5419d8
and eax, edx
mov esi, dword [eax]
lea eax, [esp + 0x20]
test eax, eax
je 0x402e4b
cmp esi, ebp
je 0x402e4b
mov eax, dword [0x554e3c]
cmp eax, ebp
jne 0x402e32
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x554e3c], eax
push str.SHCreateItemFromIDList
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x20]
push ecx
push 0x547658
push esi
call eax
cmp dword [esp + 0x20], ebp
je 0x4031ac
mov dword [ebx + 0x54], ebp
mov edx, dword [0x547570]
mov eax, str.________________________:
mov dword [esp + 0x24], ebp
test eax, eax
mov dword [esp + 0x10], edx
je 0x402ea9
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, ebp
je 0x402ea9
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x402ea9
mov ecx, dword [esp + 0x10]
inc esi
push esi
push str.________________________:
push ecx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00405bb0
lea edx, [esp + 0x28]
push 0x8000
push edx
mov ecx, edi
call fcn.005111f0
mov ecx, dword [0x547570]
mov eax, dword [eax]
mov dword [esp + 0x18], ecx
push eax
mov edx, dword [eax - 8]
mov eax, dword [esp + 0x14]
push edx
push eax
mov eax, dword [eax - 8]
lea ecx, [esp + 0x24]
push eax
call fcn.004059f0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.00405440
lea ecx, [esp + 0x18]
call fcn.00405700
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x402f30
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x402f30
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x28]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x402f5b
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x402f5b
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x402f86
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x402f86
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
cmp dword [ebx + 0x50], 3
je 0x403183
sub esp, 8
test edi, edi
mov esi, esp
je 0x402f9e
lea eax, [edi + 4]
jmp 0x402fa0
xor eax, eax
push eax
lea ecx, [esi + 4]
call fcn.00406370
lea eax, [esp + 0x20]
mov dword [esi], 0x5419d8
push eax
call fcn.0051f8f0
mov ecx, dword [0x547570]
mov edx, str.image
add esp, 0xc
mov dword [esp + 0x10], ecx
test edx, edx
je 0x403009
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x403009
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x403009
mov eax, dword [esp + 0x10]
inc esi
push esi
push str.image
push eax
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00405bb0
mov ecx, dword [esp + 0x10]
push 0
push ecx
lea ecx, [esp + 0x20]
call fcn.00405c70
mov ecx, dword [0x547574]
test eax, eax
mov eax, dword [esp + 0x10]
sete bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x403049
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x403049
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
test bl, bl
jne 0x403142
mov ecx, dword [0x547570]
mov edx, str.video
test edx, edx
mov dword [esp + 0x14], ecx
je 0x40309e
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x40309e
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x40309e
mov eax, dword [esp + 0x14]
inc esi
push esi
push str.video
push eax
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00405bb0
mov ecx, dword [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x20]
call fcn.00405c70
test eax, eax
je 0x403121
mov edx, dword [0x547570]
mov eax, str.audio
test eax, eax
mov dword [esp + 0x10], edx
je 0x4030ff
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4030ff
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4030ff
mov ecx, dword [esp + 0x10]
inc esi
push esi
push str.audio
push ecx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00405bb0
mov edx, dword [esp + 0x10]
push 0
push edx
lea ecx, [esp + 0x20]
call fcn.00405c70
test eax, eax
lea ecx, [esp + 0x10]
sete bl
call fcn.00405700
test bl, bl
je 0x403123
mov bl, 1
lea ecx, [esp + 0x14]
call fcn.00405700
test bl, bl
jne 0x403142
mov eax, dword [esp + 0x1c]
mov ecx, 1
mov dword [esp + 0x24], ecx
mov dword [eax + 0x54], ecx
jmp 0x40314b
mov eax, dword [esp + 0x1c]
mov ecx, 1
mov edx, dword [eax + 0x54]
test edx, edx
jne 0x403176
mov edx, dword [eax + 0x40]
test edx, edx
je 0x403176
mov dword [esp + 0x24], ecx
mov dword [eax + 0x54], ecx
lea ecx, [esp + 0x18]
mov dword [eax + 0x40], 0
call fcn.00405700
mov ebx, dword [esp + 0x1c]
jmp 0x403189
lea ecx, [esp + 0x18]
call fcn.00405700
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x54]
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x6c]
mov edx, dword [esp + 0x20]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4031ac
mov eax, dword [ebx + 0x70]
push 5
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea ecx, [esp + 0x2c]
call fcn.00510740
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4