Function at 0x5add60
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x609f26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push ebp
push esi
push edi
push 0x6ee9b4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.005bfab0
call fcn.005cb8e0
call fcn.005caaa0
mov dword [esi + 0x102578], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x6f1d4c], eax
call fcn.005cb860
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ebx, ebx
push ebx
push 1
push 0x1f0fff
push 0x6ed1c4
call edi
push eax
call edi
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebp
push ebx
push 1
push 0x1f03ff
push 0x6ed1c0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call ebp
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push 0x5ab0e0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x158]
mov dword [0x6ee9b0], eax
push 1
lea ebp, [esi + 0x14]
push 1
mov dword [esi + 4], 0x30001
mov dword [esi + 0xc], ecx
mov dword [esi + 0x4d4], 0xff000000
mov dword [ebp], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x480], ebx
call fcn.005acbd0
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x150], ebx
cmp eax, ebx
je 0x5ade5e
mov ecx, eax
call fcn.005b8350
jmp 0x5ade60
xor eax, eax
push 1
or ebx, 0xffffffff
push 0xc
mov dword [esp + 0x158], ebx
mov dword [0x6ed1fc], eax
call fcn.005acbd0
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x150], 1
test eax, eax
je 0x5ade97
mov ecx, eax
call fcn.005b7f30
jmp 0x5ade99
xor eax, eax
push 1
push 0x3c
mov dword [esp + 0x158], ebx
mov dword [0x6ed1f8], eax
call fcn.005acbd0
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
mov dword [esp + 0x150], 2
test edi, edi
je 0x5adecf
mov ecx, edi
call fcn.005b8450
jmp 0x5aded1
xor edi, edi
push 0
push ebp
push 0x6afb64
push 0x800
push 0
mov dword [esp + 0x164], ebx
mov dword [0x6ed200], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call sub.DINPUT8.dll_DirectInput8Create
test eax, eax
jne 0x5adf08
mov ecx, dword [0x6ed1fc]
call fcn.005b8630
push str.Input_Devices_enabled:_Mouse__Keyboard_n
call fcn.005aac80
add esp, 4
push 0x20
call sub.d3d9.dll_Direct3DCreate9
mov edi, eax
xor ebx, ebx
mov dword [esi + 0x18], edi
cmp edi, ebx
jne 0x5adf2e
xor eax, eax
jmp 0x5ae051
push pe_nt_image_headers32
lea edx, [esp + 0x1c]
push ebx
push edx
call fcn.005d4860
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 1
push ebx
push edi
call edx
mov ecx, dword [0x76d37c]
cmp ecx, ebx
je 0x5adf9f
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
cmp eax, edi
jae 0x5adf69
mov edi, eax
push edi
call fcn.005c5de0
mov ecx, dword [0x76d394]
mov eax, dword [ecx + 0x184]
cmp edi, eax
jge 0x5adf81
mov eax, edi
push eax
call fcn.005c5de0
mov ecx, dword [0x76d38c]
mov eax, dword [ecx + 0x184]
cmp edi, eax
jge 0x5adf99
mov eax, edi
push eax
call fcn.005c5de0
push str.Default.ini
mov byte [esi + 0x102604], bl
mov dword [esi + 0x568], ebx
mov dword [esi + 0x8156c], ebx
call fcn.005d19f7
push str.DefaultShaderFile.shader
call fcn.005d19f7
call fcn.005acd60
mov esi, eax
call fcn.005acdf0
mov edi, eax
mov eax, esi
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
push eax
push str.VMEM_As_seen_through_DDRaw:__d_n
call fcn.005aac80
mov eax, edi
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
push eax
push str.VMEM_As_seen_through_WMI:__d_n
call fcn.005aac80
add esp, 0x18
cmp esi, edi
mov eax, esi
jg 0x5ae028
mov eax, edi
mov ecx, dword [0x76d47c]
push eax
call fcn.005c5de0
mov ecx, dword [0x76d480]
push esi
call fcn.005c5de0
mov ecx, dword [0x76d484]
push edi
call fcn.005c5de0
mov eax, 1
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x144
ret 8