Function at 0x607720
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x87a1c9
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x40], esi
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00630e80
xor ebx, ebx
lea ecx, [esi + 0xd8]
mov dword [esp + 0x80], ebx
mov dword [esi], fcn.006306e0
mov dword [esi + 0xc], 0x43a5e4
call fcn.005fe650
lea eax, [esi + 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edi, [esi + 0x164]
mov dword [edi], ebx
mov dword [esi + 0x168], ebx
mov dword [esi + 0x16c], ebx
mov dword [esi + 0x170], ebx
push fcn.004c3d50
push 0x602350
push 0x3e
push 4
lea eax, [esi + 0x174]
push eax
mov byte [esp + 0x94], 5
call fcn.00803c4e
push fcn.004c3d50
push 0x602350
push 0x3e
push 4
lea ecx, [esi + 0x26c]
push ecx
mov byte [esp + 0x94], 6
call fcn.00803c4e
mov dword [esi + 0x364], ebx
mov dword [esi + 0x368], ebx
mov dword [esi + 0x36c], ebx
mov dword [esi + 0x370], ebx
mov dword [esi + 0x374], ebx
mov dword [esi + 0x37c], ebx
mov eax, 0xa
mov dword [esi + 0x380], ebx
mov dword [esi + 0x384], ebx
mov dword [esi + 0x388], ebx
mov dword [esi + 0x38c], ebx
mov dword [esi + 0x390], ebx
mov dword [esi + 0x394], eax
mov dword [esi + 0x398], ebx
mov dword [esi + 0x39c], ebx
mov dword [esi + 0x3a0], ebx
mov dword [esi + 0x3a4], ebx
mov dword [esi + 0x3a8], ebx
mov dword [esi + 0x3ac], eax
push fcn.004c3d50
push 0x602350
push 4
push 4
lea edx, [esi + 0x3b0]
push edx
mov byte [esp + 0x94], 0xf
call fcn.00803c4e
push fcn.004c3d50
push 0x602350
push 2
push 4
lea eax, [esi + 0x3c0]
push eax
mov byte [esp + 0x94], 0x10
call fcn.00803c4e
fldz
fstp dword [esi + 0x554]
mov dword [esi + 0x540], 0xffffffff
mov dword [esi + 0x550], ebx
mov dword [esi + 0x594], ebx
fldz
mov dword [esi + 0x598], ebx
mov dword [esi + 0x59c], ebx
mov dword [esi + 0x5a0], ebx
mov dword [esi + 0x5a4], ebx
fst qword [esi + 0x5e8]
mov cl, byte [ebp + 0xc]
fst qword [esi + 0x5f0]
fst qword [esi + 0x600]
mov dword [esi + 0x5bc], 1
fst qword [esi + 0x608]
mov dword [esi + 0x5c0], ebx
mov dword [esi + 0x5c4], ebx
mov dword [esi + 0x5c8], ebx
mov dword [esi + 0x5cc], ebx
mov byte [esi + 0x5d4], bl
mov dword [esi + 0x5e0], ebx
mov dword [esi + 0x5e4], ebx
mov byte [esi + 0x613], cl
mov byte [esi + 0x614], 1
mov dword [esi + 0x618], ebx
mov dword [esi + 0x61c], ebx
mov dword [esi + 0x620], ebx
fst qword [esi + 0x628]
push fcn.004a8c20
fst qword [esi + 0x638]
fst qword [esi + 0x640]
push fcn.005345e0
fst qword [esi + 0x648]
push 0xa
fstp qword [esi + 0x650]
push 4
fld1
lea edx, [esi + 0xed8]
fst qword [esi + 0x658]
push edx
fstp qword [esi + 0xed0]
mov byte [esp + 0x94], 0x12
mov dword [esi + 0x630], ebx
mov dword [esi + 0xe50], ebx
mov dword [esi + 0xe54], ebx
mov dword [esi + 0xe60], ebx
mov dword [esi + 0xe64], ebx
mov dword [esi + 0xe88], ebx
mov dword [esi + 0xeb0], ebx
mov dword [esi + 0xeb4], ebx
mov dword [esi + 0xec8], ebx
call fcn.00803c4e
mov dword [esi + 0xf00], ebx
mov dword [esi + 0xf04], ebx
mov dword [esi + 0xf08], ebx
lea eax, [esi + 0xf1c]
push eax
mov dword [esi + 0xf0c], ebx
mov dword [esi + 0xf10], 0x2710
mov dword [esi + 0xf14], 0xffffd8f0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp + 0x10]
mov byte [esp + 0x80], 0x16
cmp dword [eax], ebx
jge 0x607a2c
mov ecx, dword [ebp + 0x14]
push 0x25
push 0x43b688
call fcn.004a9f20
jmp 0x607c92
mov dword [esi + 0x5ac], ebx
mov dword [esi + 0x5b0], ebx
mov dword [esi + 0x5b4], ebx
mov dword [esi + 0x5b8], ebx
call fcn.00533c60
mov ecx, eax
call fcn.005fe820
mov dword [esp + 0x3c], eax
cmp eax, ebx
je 0x607aae
push 0x43b668
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x3c]
push 0x43b658
push ecx
mov dword [esi + 0x5ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [esp + 0x3c]
push 0x43b648
push edx
mov dword [esi + 0x5b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x5b4], eax
mov eax, dword [esp + 0x3c]
push 0x43b634
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x5b8], eax
jmp 0x607adb
mov ecx, dword [ebp + 0x14]
push 0x54
push 0x43b588
call fcn.004a9f20
mov ecx, dword [ebp + 0x14]
push 9
push 0x43b574
call fcn.004a9f20
mov ecx, dword [ebp + 0x14]
push 0x3c
push 0x43b4f8
call fcn.004a9f20
push 0x402024
mov dword [esi + 0x13c], ebx
mov dword [esi + 0x140], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x138], eax
cmp eax, ebx
je 0x607b26
push 0x401fd8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esi + 0x138]
push 0x43b4dc
push ecx
mov dword [esi + 0x13c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x140], eax
push 0x43b4c8
mov dword [esi + 0x148], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x144], eax
cmp eax, ebx
je 0x607b53
push 0x43b4b4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x148], eax
mov eax, dword [esi + 0x148]
cmp eax, ebx
je 0x607b71
push edi
push 0x20
call eax
cmp dword [edi], ebx
jne 0x607bbd
mov edx, dword [esi + 0x148]
push edi
push 0x1f
call edx
cmp dword [edi], ebx
jne 0x607bbd
push 0x20
call sub.d3d9.dll_Direct3DCreate9
mov edi, eax
mov eax, dword [esi + 0x168]
cmp eax, ebx
je 0x607b90
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x168], edi
cmp edi, ebx
jne 0x607bc9
push 0x1f
call sub.d3d9.dll_Direct3DCreate9
mov edi, eax
mov eax, dword [esi + 0x168]
cmp eax, ebx
je 0x607bb5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x168], edi
jmp 0x607bc9
push edi
lea ecx, [esi + 0x168]
call fcn.006038c0
push 0x38
lea eax, [esi + 0x55c]
push ebx
push eax
call fcn.00802690
add esp, 0xc
call fcn.00533c70
mov edi, eax
cmp byte [edi + 0x24], bl
je 0x607bfd
mov eax, dword [esi + 0x140]
mov byte [esi + 0x612], 1
cmp eax, ebx
je 0x607c03
push ebx
call eax
jmp 0x607c03
mov byte [esi + 0x612], bl
push 0x450
call fcn.007c8529
add esp, 4
mov dword [esp + 0x3c], eax
mov byte [esp + 0x80], 0x17
cmp eax, ebx
je 0x607c4b
fld qword [edi + 0x50]
mov ecx, dword [edi + 0x4c]
mov edx, dword [edi + 0x48]
push ebx
sub esp, 8
fstp qword [esp]
push ecx
fld qword [edi + 0x60]
push edx
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, eax
fld qword [edi + 0x58]
fstp qword [esp]
call fcn.00602950
jmp 0x607c4d
xor eax, eax
mov dword [esi + 0xf00], eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, esi
mov byte [esp + 0x84], 0x16
call fcn.00605430
mov ecx, dword [ebp + 0x10]
push 0x3f0
lea edx, [esi + 0x670]
push ebx
push edx
mov dword [ecx], eax
call fcn.00802690
push 0x3f0
lea eax, [esi + 0xa60]
push ebx
push eax
call fcn.00802690
add esp, 0x18
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10