Function at 0x58e570
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x5db696
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push esi
push edi
push 0x6ad1f8
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.0059d890
call fcn.005a8aa0
call fcn.005a94a0
mov dword [ebx + 0x102578], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x6ad4d8], eax
call fcn.0057df70
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 1
push 0x1f0fff
push 0x6a82fc
call edi
push eax
call edi
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call esi
push 0
push 1
push 0x1f03ff
push 0x6a8300
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call esi
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x58a040
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x6ad4c4], eax
lea edi, [ebx + 0x10]
mov eax, dword [esp + 0x154]
push 1
push 1
mov dword [ebx + 4], 0x30001
mov dword [ebx + 8], eax
mov dword [ebx + 0x4d4], 0xff000000
mov dword [edi], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x480], 0
call fcn.0058bcd0
add esp, 8
mov dword [esp + 0xc], eax
mov dword [esp + 0x14c], 0
test eax, eax
je 0x58e680
mov ecx, eax
call fcn.005970e0
jmp 0x58e682
xor eax, eax
push 1
push 0xc
mov dword [esp + 0x154], 0xffffffff
mov dword [0x6a82ec], eax
call fcn.0058bcd0
add esp, 8
mov dword [esp + 0xc], eax
mov dword [esp + 0x14c], 1
test eax, eax
je 0x58e6ba
mov ecx, eax
call fcn.005970f0
jmp 0x58e6bc
xor eax, eax
push 1
push 0x3c
mov dword [esp + 0x154], 0xffffffff
mov dword [0x6a82e8], eax
call fcn.0058bcd0
mov esi, eax
add esp, 8
mov dword [esp + 0xc], esi
mov dword [esp + 0x14c], 2
test esi, esi
je 0x58e6f6
mov ecx, esi
call fcn.00597450
jmp 0x58e6f8
xor esi, esi
push 0
push edi
push 0x674114
push 0x800
push 0
mov dword [esp + 0x160], 0xffffffff
mov dword [0x6a82f0], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call sub.DINPUT8.dll_DirectInput8Create
test eax, eax
jne 0x58e733
mov ecx, dword [0x6a82ec]
call fcn.00597500
push str.Input_Devices_enabled:_Mouse__Keyboard_n
call fcn.00589be0
add esp, 4
push 0x20
call sub.d3d9.dll_Direct3DCreate9
mov esi, eax
mov dword [ebx + 0x14], esi
test esi, esi
je 0x58e87c
push 0x130
lea eax, [esp + 0x18]
push 0
push eax
call fcn.005b2f40
mov eax, dword [esi]
lea ecx, [esp + 0x20]
add esp, 0xc
push ecx
push 1
push 0
push esi
call dword [eax + 0x38]
mov ecx, dword [0x728b4c]
test ecx, ecx
je 0x58e7c2
mov esi, dword [esp + 0x70]
cmp dword [esp + 0x6c], esi
cmovb esi, dword [esp + 0x6c]
push esi
call fcn.005a34c0
mov ecx, dword [0x728b64]
mov eax, dword [ecx + 0x184]
cmp esi, eax
cmovl eax, esi
push eax
call fcn.005a34c0
mov ecx, dword [0x728b5c]
mov eax, dword [ecx + 0x184]
cmp esi, eax
cmovl eax, esi
push eax
call fcn.005a34c0
push str.Default.ini
mov byte [ebx + 0x1025f8], 0
mov dword [ebx + 0x568], 0
mov dword [ebx + 0x8156c], 0
call fcn.005afa30
push str.DefaultShaderFile.shader
call fcn.005afa30
call fcn.0058e9a0
mov esi, eax
call fcn.0058ea30
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.00589be0
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.00589be0
mov ecx, dword [0x728c48]
add esp, 0x18
cmp esi, edi
mov eax, edi
cmovg eax, esi
push eax
call fcn.005a34c0
mov ecx, dword [0x728c4c]
push esi
call fcn.005a34c0
mov ecx, dword [0x728c50]
push edi
call fcn.005a34c0
mov eax, 1
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x144
ret 8