Function at 0x52f890
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
lea eax, [esp + 0x10]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
push edi
push 4
push 1
push eax
call dword [esi + 0x10]
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp al, 0x4f
jne 0x52f8fa
cmp ah, 0x67
jne 0x52f8fa
mov al, byte [esp + 0x22]
cmp al, ah
jne 0x52f8fa
cmp byte [esp + 0x23], 0x53
jne 0x52f8fa
push 0
push 0
push edi
call dword [esi + 0xc]
push 0
push 0xa7aff8
push 0x710
call fcn.004e0530
mov ebp, eax
add esp, 0x18
test ebp, ebp
jne 0x52f904
push str.Theora
call fcn.004e3200
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push 0x710
push 0
push ebp
call fcn.004dc0b0
lea ebx, [ebp + 0x54]
mov dword [ebp + 0x2b8], 0
push ebx
mov dword [ebp + 0x2b0], 0xffffffff
call fcn.006691a0
lea eax, [ebp + 0x208]
push eax
call fcn.006791c0
lea ecx, [ebp + 0x270]
push ecx
call fcn.00679340
mov edx, dword [esp + 0x3c]
lea edi, [ebp + 0x20]
mov ecx, 0xc
push ebp
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x50], edx
call fcn.0052fef0
add esp, 0x1c
cmp eax, 0xffffffff
je 0x52fd1b
lea eax, [ebp + 0x1c]
xor esi, esi
push eax
push esi
push ebp
push 0x530c50
push esi
push esi
mov dword [ebp + 4], 1
mov dword [ebp], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [ebp + 0x18], eax
jne 0x52f9af
push 0x6ebf5c
call fcn.004e3200
add esp, 4
push ebp
call fcn.0052fd60
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea eax, [ebp + 0x208]
lea ecx, [ebp + 0x280]
push eax
push ecx
call fcn.006793f0
push ebx
call fcn.006697d0
lea edi, [ebp + 0x80]
push edi
call fcn.00669800
mov edx, dword [ebp + 0x50]
push esi
push esi
push edx
call dword [ebp + 0x2c]
push esi
mov ebx, 0x3e8
push 0xa7aff8
push 0x3e80
mov dword [esp + 0x48], ebx
call fcn.004e0530
add esp, 0x28
cmp eax, esi
mov dword [ebp + 0x29c], eax
jne 0x52fa23
push 0x6ebf28
call fcn.004e3200
add esp, 4
push ebp
call fcn.0052fd60
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push esi
push 0xa7aff8
push ebx
mov dword [ebp + 0x2a0], esi
mov dword [esp + 0x24], ebx
call fcn.004e0530
add esp, 0xc
cmp eax, esi
mov dword [ebp + 0x2a4], eax
jne 0x52fa66
push 0x6ebeec
call fcn.004e3200
add esp, 4
push ebp
call fcn.0052fd60
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov dword [ebp + 0x2a8], esi
xor ebx, ebx
mov dword [ebp + 0x2ac], esi
mov dword [esp + 0x14], esi
mov byte [esp + 0x24], bl
lea esi, [ebp + 0x1e8]
mov dword [esp + 0x10], 0x3e80
push esi
push edi
call fcn.00669890
add esp, 8
cmp eax, 1
je 0x52faf7
lea esi, [ebp + 0x70]
lea eax, [ebp + 0x54]
push esi
push eax
call fcn.00669440
add esp, 8
test eax, eax
jle 0x52facc
mov eax, dword [ebp + 0x7c]
mov edx, dword [ebp + 0x74]
add eax, edx
push esi
mov dword [esp + 0x18], ebx
push edi
mov byte [esp + 0x2c], 1
add ebx, eax
call fcn.006694a0
add esp, 8
jmp 0x52fae2
push 0x1000
push ebp
call fcn.0052feb0
add esp, 8
test eax, eax
je 0x52fc8d
lea eax, [ebp + 0x1e8]
push eax
push edi
call fcn.00669890
add esp, 8
cmp eax, 1
jne 0x52fa9c
lea esi, [ebp + 0x1e8]
push esi
call fcn.00679330
add esp, 4
test eax, eax
jl 0x52fa8a
mov al, byte [esp + 0x24]
test al, al
je 0x52fbc3
mov ecx, dword [ebp + 0x2a0]
mov eax, dword [esp + 0x20]
cmp ecx, eax
jne 0x52fb5a
mov edx, eax
mov eax, dword [esp + 0x10]
add edx, 0x3e8
add eax, 0x3e80
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x29c]
push 0
push 0xa7aff8
push eax
push edx
mov dword [esp + 0x20], eax
call fcn.004e1910
add esp, 0x10
mov dword [ebp + 0x29c], eax
mov eax, dword [ebp + 0x2a0]
mov ecx, dword [ebp + 0x29c]
mov edx, dword [ebp + 0x2a8]
mov byte [esp + 0x24], 0
shl eax, 4
mov dword [eax + ecx + 4], edx
mov eax, dword [ebp + 0x2a0]
mov ecx, dword [ebp + 0x29c]
mov edx, dword [esp + 0x14]
shl eax, 4
mov dword [eax + ecx], edx
mov ecx, dword [ebp + 0x2a0]
mov edx, dword [ebp + 0x29c]
xor eax, eax
shl ecx, 4
mov dword [ecx + edx + 0xc], eax
mov ecx, dword [ebp + 0x2a0]
mov edx, dword [ebp + 0x29c]
shl ecx, 4
mov dword [ecx + edx + 8], eax
mov eax, dword [ebp + 0x2a0]
inc eax
mov dword [ebp + 0x2a0], eax
mov ecx, dword [esp + 0x18]
mov esi, dword [ebp + 0x2a8]
mov eax, ecx
cdq
cmp esi, eax
jne 0x52fc05
mov eax, dword [ebp + 0x2ac]
cmp eax, edx
jne 0x52fc05
add ecx, 0x3e8
push 0
push 0xa7aff8
mov dword [esp + 0x20], ecx
push ecx
mov ecx, dword [ebp + 0x2a4]
push ecx
call fcn.004e1910
add esp, 0x10
mov dword [ebp + 0x2a4], eax
lea esi, [ebp + 0x1e8]
push esi
call fcn.00679330
mov ecx, 1
add esp, 4
cmp eax, ecx
jne 0x52fc41
mov edx, dword [ebp + 0x2a0]
mov eax, dword [ebp + 0x29c]
shl edx, 4
mov dword [edx + eax - 8], ecx
mov edx, dword [ebp + 0x2a8]
mov eax, dword [ebp + 0x2a4]
mov byte [edx + eax], cl
jmp 0x52fc51
mov edx, dword [ebp + 0x2a8]
mov eax, dword [ebp + 0x2a4]
mov byte [edx + eax], 0
mov edx, dword [ebp + 0x2a8]
add edx, ecx
mov ecx, dword [ebp + 0x2a0]
mov dword [ebp + 0x2a8], edx
mov eax, dword [ebp + 0x2ac]
mov edx, dword [ebp + 0x29c]
adc eax, 0
shl ecx, 4
mov dword [ebp + 0x2ac], eax
lea eax, [ecx + edx - 4]
mov ecx, dword [ecx + edx - 4]
inc ecx
mov dword [eax], ecx
jmp 0x52fa8a
mov eax, dword [ebp + 0x29c]
push ebp
mov dword [eax], 0
call fcn.005301c0
mov edx, dword [ebp + 0x20c]
mov eax, dword [ebp + 0x208]
lea ecx, [ebp + 0x2c4]
push ecx
push edx
push eax
call fcn.0051f300
add esp, 0x10
cmp eax, 0xffffffff
jne 0x52fce1
push 0x6ebea0
call fcn.004e3200
add esp, 4
push ebp
call fcn.0052fd60
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x28]
push 0
push 0xa7aff8
mov dword [ebp + 0x2c0], eax
lea ecx, [eax + eax*4]
lea esi, [eax + ecx*2]
shl esi, 2
push esi
call fcn.004e0530
add esp, 0xc
mov dword [ebp + 0x2bc], eax
test eax, eax
jne 0x52fd2e
push 0x6ebe58
call fcn.004e3200
add esp, 4
push ebp
call fcn.0052fd60
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push esi
push 0
push eax
call fcn.004dc0b0
push 0
push ebp
call fcn.005300d0
push 1
push 1
push ebp
call fcn.00530290
add esp, 0x20
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret