Function at 0x404cc0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x44
push esi
mov esi, eax
mov eax, dword [edi + 0x44]
mov dword [esp + 4], eax
test esi, esi
jl 0x405068
cmp esi, dword [eax + 0x68]
jae 0x405068
mov eax, dword [eax + esi*4 + 0x6c]
push ebx
push ebp
mov ebp, dword [eax + 8]
mov ebx, 1
cmp dword [ebp + 0xe0], ebx
jne 0x404d01
cmp dword [ebp + 0x44], 0
jg 0x404d01
mov dword [ebp + 0x44], 2
mov ecx, dword [ebp + 0xe4]
push ecx
call dword [sym.imp.avcodec.dll_avcodec_find_decoder]
mov edx, dword [0x443a8c]
mov ecx, dword [0x443a88]
mov dword [ebp + 0x1a0], edx
mov dword [ebp + 0x19c], ecx
mov edx, dword [0x4110b0]
mov dword [ebp + 0xec], edx
mov ecx, dword [0x443a98]
add esp, 4
mov dword [ebp + 0x298], ecx
cmp dword [0x443a98], 0
je 0x404d51
or dword [ebp + 0xc], 0x4000
mov edx, dword [0x443a9c]
mov dword [ebp + 0x174], edx
cmp dword [0x443a90], 0
je 0x404d6c
or dword [ebp + 0x25c], ebx
mov ecx, dword [0x443aa0]
mov dword [ebp + 0x2cc], ecx
mov edx, dword [0x443aa4]
mov dword [ebp + 0x2c8], edx
mov ecx, dword [0x443aa8]
mov dword [ebp + 0x2c4], ecx
mov edx, dword [0x4110b4]
mov dword [ebp + 0x100], edx
mov ecx, dword [0x4110b8]
mov dword [ebp + 0x180], ecx
test eax, eax
je 0x404f40
push eax
push ebp
call sub.avcodec.dll_avcodec_open
add esp, 8
test eax, eax
jl 0x404f40
cmp dword [ebp + 0xe0], ebx
jne 0x404ea3
mov edx, dword [ebp + 0x40]
mov eax, 0x8010
mov word [edi + 0xcd198], ax
lea ebx, [edi + 0xcd194]
lea eax, [esp + 0x14]
mov dword [ebx], edx
mov cl, byte [ebp + 0x44]
push eax
mov edx, 0x800
push ebx
mov byte [edi + 0xcd19a], cl
mov byte [edi + 0xcd19b], 0
mov word [edi + 0xcd19c], dx
mov dword [edi + 0xcd1a4], 0x404ad0
mov dword [edi + 0xcd1a8], edi
mov dword [edi + 0xcd1b0], 0
call fcn.0040a490
add esp, 8
test eax, eax
jg 0x404e84
call fcn.0040a4c0
cmp byte [edi + 0xcd19a], 2
jbe 0x404e94
mov byte [edi + 0xcd19a], 2
cmp dword [ebp + 0xe4], 0x15004
jne 0x404e64
mov dword [edi + 0xcd1b0], 1
mov dword [ebp + 0x340], 2
jmp 0x404e6e
mov dword [edi + 0xcd1b0], 2
lea ecx, [esp + 0x14]
push ecx
push ebx
call fcn.0040a490
add esp, 8
test eax, eax
jle 0x404f3b
fld1
sub esp, 8
fstp qword [esp]
call fcn.0040a4f0
add esp, 8
mov edx, dword [esp + 0x20]
mov dword [edi + 0xb0], edx
mov ebx, 1
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x40]
cmp eax, 1
jbe 0x404eb9
mov ebx, eax
cmp ebx, 1
mov dword [0x41109c], ebx
jle 0x404ece
push ebx
push ebp
call sub.avcodec.dll_avcodec_thread_init
add esp, 8
mov ecx, dword [0x41109c]
mov dword [ebp + 0x26c], ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + esi*4 + 0x6c]
xor ebx, ebx
mov dword [edx + 0x50], ebx
mov eax, dword [ebp + 0xe0]
sub eax, ebx
je 0x404fc7
sub eax, 1
je 0x404f4a
sub eax, 2
jne 0x40505f
mov dword [edi + 0xccb6c], esi
mov eax, dword [ecx + esi*4 + 0x6c]
lea esi, [edi + 0xccb78]
mov dword [edi + 0xccb74], eax
call fcn.00401cb0
push edi
push 0x402a80
call sub.SDL.dll_SDL_CreateThread
add esp, 8
pop ebp
pop ebx
mov dword [edi + 0xccb68], eax
xor eax, eax
pop esi
add esp, 0x44
ret
call fcn.0040a4c0
pop ebp
pop ebx
or eax, 0xffffffff
pop esi
add esp, 0x44
ret
fld qword [0x40d3f8]
mov dword [edi + 0x4c], esi
mov edx, dword [ecx + esi*4 + 0x6c]
mov dword [edi + 0x90], edx
mov eax, dword [ecx + esi*4 + 0x6c]
mov dword [edi + 0x8c], eax
mov dword [edi + 0x8cac4], ebx
mov dword [edi + 0x8cac8], ebx
call sub.MSVCR90.dll__CIlog
fdiv qword [0x40d3f0]
call sub.MSVCR90.dll__CIexp
fstp qword [edi + 0x78]
mov dword [edi + 0x88], ebx
fild dword [ebp + 0x40]
push 0x40
lea ecx, [edi + 0x8cb10]
fdivr qword [0x40d3e8]
push ebx
push ecx
fstp qword [edi + 0x80]
call sub.MSVCR90.dll_memset
lea esi, [edi + 0x94]
call fcn.00401cb0
push ebx
call fcn.0040a4b0
add esp, 0x10
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x44
ret
fld qword [0x40d3e0]
mov dword [edi + 0xccc70], esi
mov edx, dword [ecx + esi*4 + 0x6c]
fstp qword [edi + 0xccc60]
mov dword [edi + 0xccc74], edx
call sub.avformat.dll_Ordinal_18
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
fild qword [esp + 0xc]
fdiv qword [0x40cf10]
fstp qword [edi + 0xccc50]
call sub.avformat.dll_Ordinal_18
lea esi, [edi + 0xccc78]
mov dword [edi + 0xcccb0], eax
mov dword [edi + 0xcccb4], edx
call fcn.00401cb0
push edi
push 0x404660
call sub.SDL.dll_SDL_CreateThread
mov dword [edi + 4], eax
mov dword [ebp + 0x104], 0x402a10
mov dword [ebp + 0x108], 0x402a50
mov eax, dword [edi + 0xccc74]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x28]
mov dword [edi + 0xcd13c], edx
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x2c]
mov dword [edi + 0xcd140], ecx
add esp, 8
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x44
ret
or eax, 0xffffffff
pop esi
add esp, 0x44
ret