Function at 0x402770
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4bdf44
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push eax
push esi
call fcn.00442b60
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi], vtable.MediaBrowser.0
mov dword [esi + 0x634], edi
mov dword [esi + 0x638], edi
mov dword [esi + 0x63c], edi
mov dword [esi + 0x640], edi
call fcn.00498c2b
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4027e0
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x644], eax
push fcn.00401a70
push fcn.0041c470
push 3
push 4
lea ecx, [esi + 0x680]
push ecx
mov byte [esp + 0x2c], 1
call fcn.0049ec4d
push fcn.00426af0
push 0x4026a0
push 3
push 8
lea edx, [esi + 0x698]
push edx
mov byte [esp + 0x2c], 2
call fcn.0049ec4d
push fcn.00401a70
push fcn.0041c470
push 3
push 4
lea eax, [esi + 0x6b4]
push eax
mov byte [esp + 0x2c], 3
call fcn.0049ec4d
push fcn.00426af0
push 0x4026a0
push 3
push 8
lea ecx, [esi + 0x6cc]
push ecx
mov byte [esp + 0x2c], 4
call fcn.0049ec4d
push fcn.00401a70
push fcn.0041c470
push 3
push 4
lea edx, [esi + 0x6e8]
push edx
mov byte [esp + 0x2c], 5
call fcn.0049ec4d
push fcn.00426af0
push 0x4026a0
push 3
push 8
lea eax, [esi + 0x700]
push eax
mov byte [esp + 0x2c], 6
call fcn.0049ec4d
mov byte [esp + 0x18], 7
lea ebp, [esi + 0x738]
call fcn.00498c2b
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4028d1
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x18], 8
call fcn.00498c2b
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4028ff
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x758], eax
mov eax, 0xa
mov dword [esi + 0x77c], 0x4c44c0
mov dword [esi + 0x788], edi
mov dword [esi + 0x78c], edi
mov dword [esi + 0x784], edi
mov dword [esi + 0x780], edi
mov dword [esi + 0x790], edi
mov dword [esi + 0x794], eax
mov byte [esp + 0x18], al
call fcn.00498c2b
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402962
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x7c8], eax
mov byte [esp + 0x18], 0xb
call fcn.00498c2b
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402993
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x7d4], eax
mov byte [esp + 0x18], 0xc
call fcn.00498c2b
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4029c4
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x7f8], eax
mov byte [esp + 0x18], 0xd
call fcn.00498c2b
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4029f5
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x7fc], eax
mov byte [esp + 0x18], 0xe
call fcn.00498c2b
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402a26
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x800], eax
mov byte [esp + 0x18], 0xf
call fcn.00498c2b
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402a57
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x804], eax
mov byte [esp + 0x18], 0x10
call fcn.00498c2b
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402a88
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x80c], eax
mov byte [esp + 0x18], 0x11
cmp dword [0x4e5494], 1
mov dword [esi + 0x2c], 0x26
jne 0x402ac0
push 0x4e90c0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4e5494], edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x798], eax
push edi
push edi
mov dword [esi + 0x834], edi
mov dword [esi + 0x838], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0x808], edi
mov dword [esi + 0x670], edi
mov dword [esi + 0x674], edi
mov dword [esi + 0x67c], edi
mov dword [esi + 0x678], edi
mov dword [esi + 0x830], 2
push esi
mov eax, 1
mov dword [esi + 0x83c], eax
mov dword [esi + 0x82c], eax
mov dword [esi + 0x68c], edi
mov dword [esi + 0x6c0], edi
mov dword [esi + 0x6f4], edi
mov dword [esi + 0x690], edi
mov dword [esi + 0x6c4], edi
mov dword [esi + 0x6f8], edi
mov dword [esi + 0x694], edi
mov dword [esi + 0x6c8], edi
mov dword [esi + 0x6fc], edi
push 0x407040
mov ecx, 0x40
mov eax, 0x30
push edi
push edi
mov dword [esi + 0x718], edi
mov dword [esi + 0x71c], edi
mov dword [esi + 0x630], 5
mov dword [esi + 0x64c], ecx
mov dword [esi + 0x650], eax
mov dword [esi + 0x654], ecx
mov dword [esi + 0x658], eax
mov dword [esi + 0x66c], 4
mov dword [esi + 0x7c4], edi
mov dword [esi + 0x81c], edi
mov dword [esi + 0x7d8], edi
mov dword [esi + 0x7dc], edi
mov dword [esi + 0x7cc], edi
mov dword [esi + 0x7d0], edi
mov dword [esi + 0x7f4], edi
mov dword [esi + 0x7bc], edi
mov dword [esi + 0x7a8], edi
mov dword [esi + 0x7ac], edi
mov dword [esi + 0x7b0], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x4c3af8
lea ecx, [esp + 0x28]
mov dword [esi + 0x7b0], eax
mov dword [esi + 0x79c], edi
mov dword [esi + 0x7a0], edi
mov dword [esi + 0x7a4], edi
mov dword [esi + 0x7ec], edi
mov dword [esi + 0x7e4], edi
mov dword [esi + 0x720], edi
mov dword [esi + 0x724], edi
mov dword [esi + 0x728], edi
mov dword [esi + 0x72c], edi
mov dword [esi + 0x73c], edi
mov dword [esi + 0x734], edi
mov dword [esi + 0x730], edi
call fcn.004019b0
push eax
mov ecx, ebp
mov byte [esp + 0x1c], 0x12
call fcn.00408830
mov byte [esp + 0x18], 0x11
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4c3af8
lea ecx, [esp + 0x28]
mov dword [esi + 0x740], edi
mov dword [esi + 0x744], edi
mov dword [esi + 0x748], edi
mov dword [esi + 0x74c], edi
mov dword [esi + 0x75c], edi
mov dword [esi + 0x754], edi
mov dword [esi + 0x750], edi
call fcn.004019b0
push eax
lea ecx, [esi + 0x758]
mov byte [esp + 0x1c], 0x13
call fcn.00408830
mov byte [esp + 0x18], 0x11
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ce6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esi + 0x770], 2
mov dword [esi + 0x768], edi
mov dword [esi + 0x76c], edi
mov dword [esi + 0x7f0], edi
mov dword [esi + 0x810], edi
mov dword [esi + 0x814], edi
mov dword [esi + 0x818], edi
mov dword [esi + 0x7b4], edi
mov dword [esi + 0x7c0], 0xffffffff
mov dword [esi + 0x760], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 8