Function at 0x5257f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72d197
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx + 4]
push 0
push 0
push 0
mov eax, dword [ecx]
push 9
mov dword [ebp - 0x34], ebx
call dword [eax + 0x18]
mov cl, byte [ebp - 0xd]
push 0
mov byte [ebp - 0x50], cl
lea ecx, [ebp - 0x50]
mov esi, eax
call fcn.00420210
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [ebp - 0x50]
call fcn.0042f5f0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 4], 0
test eax, eax
jne 0x52585e
mov eax, 0x7367f4
push eax
call fcn.005474c0
mov ecx, eax
call fcn.00547960
mov esi, eax
test esi, esi
mov dword [ebp - 0x30], esi
jne 0x52587e
push str.world
jmp 0x525fea
mov edx, dword [esi + 0x134]
mov eax, dword [ebx + 4]
mov dword [ebx + 0xec], edx
mov ecx, dword [esi + 0x1b8]
mov dword [eax + 0x40], ecx
mov edx, dword [ebx + 4]
mov eax, dword [esi + 0x1bc]
push 0x80f040
mov dword [edx + 0x44], eax
mov ecx, dword [ebx + 4]
mov edx, dword [esi + 0x1b0]
push 0x80f080
mov dword [ecx + 0x48], edx
mov eax, dword [ebx + 4]
mov ecx, dword [esi + 0x1b4]
push 0x80f070
mov dword [eax + 0x4c], ecx
mov edx, dword [esi + 0x188]
mov dword [0x80f070], edx
mov eax, dword [esi + 0x18c]
mov dword [0x80f074], eax
mov ecx, dword [esi + 0x190]
mov dword [0x80f078], ecx
mov edx, dword [esi + 0x194]
mov dword [0x80f080], edx
mov eax, dword [esi + 0x198]
mov dword [0x80f084], eax
mov ecx, dword [esi + 0x19c]
mov dword [0x80f088], ecx
mov edx, dword [esi + 0x1a0]
mov dword [0x80f040], edx
mov eax, dword [esi + 0x1a4]
mov dword [0x80f044], eax
mov ecx, dword [esi + 0x1a8]
mov dword [0x80f048], ecx
mov ecx, dword [0x79cb18]
call fcn.0040dcf0
mov eax, dword [esi + 0x150]
test eax, eax
jne 0x525951
push str.attr
jmp 0x525fea
mov eax, dword [esi + 0x14c]
test eax, eax
jne 0x525960
mov eax, 0x7367f4
push eax
call fcn.005474c0
mov ecx, eax
call fcn.00547960
test eax, eax
mov dword [ebx + 0x40], eax
jne 0x52597e
push 0x76c934
jmp 0x525fea
mov dword [eax + 0x118], 5
mov eax, dword [esi + 0x140]
test eax, eax
jne 0x52599c
push str.gnd
jmp 0x525fea
mov eax, dword [esi + 0x13c]
test eax, eax
jne 0x5259ab
mov eax, 0x7367f4
push eax
call fcn.005474c0
mov ecx, eax
call fcn.00547960
test eax, eax
mov dword [ebp - 0x28], eax
jne 0x5259c9
push str.ground
jmp 0x525fea
mov ecx, dword [eax + 0x110]
test ecx, ecx
je 0x525fe5
push 0x9c
call fcn.0070dddb
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
test edi, edi
mov byte [ebp - 4], 1
je 0x525a36
mov ecx, edi
call fcn.0051d0a0
mov dl, byte [ebp - 0xd]
xor eax, eax
mov byte [edi + 0x6c], dl
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], eax
lea eax, [ebp - 0xd]
lea ecx, [edi + 0x7c]
push eax
mov byte [ebp - 4], 3
call fcn.005273f0
lea ecx, [ebp - 0xe]
mov byte [ebp - 4], 4
push ecx
lea ecx, [edi + 0x8c]
call fcn.00527440
mov dword [edi], 0x73ed44
mov ecx, edi
jmp 0x525a38
xor ecx, ecx
mov edi, dword [ebp - 0x28]
push 0x80f040
mov dword [ebx + 0x38], ecx
mov edx, dword [ecx]
push 0x80f080
push 0x80f070
push edi
mov byte [ebp - 4], 0
call dword [edx + 8]
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x40]
push edi
mov dword [eax + 4], ecx
call fcn.005474c0
mov ecx, eax
call fcn.00547ee0
mov eax, dword [esi + 0x114]
mov ecx, dword [ebx + 0x48]
mov edx, dword [esi + 0x118]
add ebx, 0x44
mov eax, dword [eax]
push ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 8]
push eax
push eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0xffffffff
call fcn.00527e40
add esp, 0xc
mov edi, eax
mov eax, dword [ebx + 8]
mov ecx, ebx
push eax
push edi
call fcn.005277f0
mov dword [ebx + 8], edi
mov eax, dword [ebx + 4]
test eax, eax
jne 0x525ab8
xor ecx, ecx
jmp 0x525ac0
mov ecx, dword [ebx + 0xc]
sub ecx, eax
sar ecx, 2
mov edi, dword [ebp - 0x1c]
cmp ecx, edi
jae 0x525b26
test edi, edi
jge 0x525acd
xor edi, edi
lea ecx, [edi*4]
push ecx
call fcn.0070dddb
mov edx, dword [ebx + 8]
add esp, 4
mov edi, eax
mov eax, dword [ebx + 4]
push edi
push edx
push eax
mov ecx, ebx
call fcn.00527800
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push ecx
push edx
mov ecx, ebx
call fcn.005277f0
mov eax, dword [ebx + 4]
push eax
call fcn.006ffa16
mov eax, dword [ebp - 0x1c]
add esp, 4
lea ecx, [edi + eax*4]
mov dword [ebx + 0xc], ecx
mov ecx, ebx
call fcn.00527490
lea edx, [edi + eax*4]
mov dword [ebx + 4], edi
mov edi, dword [ebp - 0x1c]
mov dword [ebx + 8], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x114]
cmp eax, ecx
je 0x525e32
xor eax, eax
jmp 0x525b41
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
add eax, 0x64
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
cdq
idiv edi
cmp ecx, eax
je 0x525b9c
push 0
push 0
push 0
push eax
push 4
mov ecx, 0x7d67b0
mov dword [ebp - 0x20], eax
call fcn.00510520
mov ecx, 0x7d67b0
call fcn.00504f30
mov ecx, 0x7d67b0
call fcn.00504e30
mov ecx, dword [0x79cb18]
call fcn.0040d1a0
test al, al
je 0x525b97
mov ecx, dword [0x79cb18]
push 0
call fcn.0040f680
call fcn.006fd660
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x837a0c]
mov eax, dword [0x837a08]
push 0x80f058
mov edi, dword [ecx + 8]
push 0x80f050
push edx
push eax
mov ecx, 0x80fe50
call fcn.00530b80
mov ecx, eax
call fcn.005a67c0
fld dword [edi + 0xd0]
fsub dword [0x80f058]
fld dword [edi + 0xcc]
fsub dword [0x80f054]
fld dword [edi + 0xc8]
fsub dword [0x80f050]
push ecx
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp dword [esp]
fstp st(0)
fstp st(0)
fstp st(0)
call fcn.00408a10
fcom dword [0x73ed40]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x525c46
mov eax, dword [0x80f068]
lea ecx, [ebp - 0x40]
fstp dword [ebp - 0x40]
push ecx
push 1
push eax
mov ecx, 0x80f060
mov dword [ebp - 0x3c], edi
call fcn.00527bc0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
jmp 0x525e21
lea eax, [edi + 0x28]
push eax
mov dword [ebp - 0x24], eax
fstp st(0)
call fcn.005474c0
mov ecx, eax
call fcn.00547960
test eax, eax
mov dword [ebp - 0x28], eax
jne 0x525c80
mov ecx, dword [ebp - 0x24]
push ecx
push str._s_model_not_found.
call fcn.00405d90
mov edx, dword [ebp - 0x14]
add esp, 8
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
jmp 0x525e21
lea ecx, [edi + 0x78]
push ecx
mov ecx, eax
call fcn.0042b200
test eax, eax
jne 0x525cbf
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x11c]
mov eax, dword [eax]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x525cbf
mov eax, dword [ebp - 0x24]
push eax
push str._s_model_has_no_node.
call fcn.00405d90
mov ecx, dword [ebp - 0x14]
add esp, 8
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
jmp 0x525e21
push 0x200
call fcn.0070dddb
add esp, 4
mov dword [ebp - 0x24], eax
test eax, eax
mov byte [ebp - 4], 5
je 0x525ce2
mov ecx, eax
call fcn.00519d80
mov ecx, eax
jmp 0x525ce4
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0
fld dword [edi + 0xf4]
fcom dword [0x736698]
fnstsw ax
test ah, 0x40
jne 0x525d04
fmul dword [0x73ed2c]
mov esi, dword [ebp - 0x28]
fstp dword [ecx + 0xb8]
mov ecx, dword [ebp - 0x18]
lea eax, [esi + 0x198]
push eax
call fcn.00519f80
mov eax, dword [ebp - 0x18]
mov edx, dword [edi + 0xc8]
mov ecx, eax
add eax, 0x84
push esi
mov dword [eax], edx
mov edx, dword [edi + 0xcc]
mov dword [eax + 4], edx
mov edx, dword [edi + 0xd0]
mov dword [eax + 8], edx
mov dword [ecx + 0x128], 1
mov eax, dword [ebp - 0x18]
mov edx, dword [edi + 0xd4]
mov ecx, eax
add eax, 0x90
mov dword [eax], edx
mov edx, dword [edi + 0xd8]
mov dword [eax + 4], edx
mov edx, dword [edi + 0xdc]
mov dword [eax + 8], edx
mov dword [ecx + 0x128], 1
mov eax, dword [ebp - 0x18]
mov edx, dword [edi + 0xe0]
mov ecx, eax
add eax, 0x9c
mov dword [eax], edx
mov edx, dword [edi + 0xe4]
mov dword [eax + 4], edx
mov edx, dword [edi + 0xe8]
mov dword [eax + 8], edx
mov dword [ecx + 0x128], 1
mov ecx, dword [ebp - 0x18]
call fcn.0051a510
mov ecx, dword [ebp - 0x18]
mov eax, dword [edi + 0xf0]
push 0x80f040
push 0x80f080
mov dword [ecx + 0x1fc], eax
mov edx, dword [ebp - 0x18]
or ecx, 0xffffffff
push 0x80f070
mov dword [edx + 0x1e8], 0
mov eax, dword [ebp - 0x18]
lea edx, [eax + 4]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x18]
call fcn.0051b020
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x18]
push ecx
push 1
push eax
mov ecx, ebx
call fcn.005279b0
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 0x114]
cmp ecx, eax
jne 0x525b3b
mov edi, dword [ebp - 0x34]
mov ecx, edi
call fcn.00526fe0
mov ecx, edi
call fcn.00526220
mov ecx, dword [edi + 0x38]
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov eax, dword [esi + 0x170]
fld dword [esi + 0x174]
push eax
call fcn.0070e470
fld dword [esi + 0x178]
push eax
call fcn.0070e470
mov ecx, dword [esi + 0x17c]
mov edx, dword [esi + 0x16c]
push eax
mov eax, dword [esi + 0x168]
push ecx
mov ecx, dword [edi + 0x38]
push edx
push eax
call fcn.0051d300
mov eax, dword [ebx + 4]
xor esi, esi
cmp eax, esi
jne 0x525e94
xor ebx, ebx
jmp 0x525e9c
mov ebx, dword [ebx + 8]
sub ebx, eax
sar ebx, 2
lea ecx, [ebp - 0x38]
mov dword [edi + 0x54], ebx
push ecx
push esi
push edi
push fcn.00523930
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x80f08c], eax
jne 0x525f1c
push str.Error_Creating_Thread.
call fcn.00405d90
add esp, 4
push edi
call fcn.00523930
mov eax, dword [0x80f08c]
cmp eax, esi
je 0x525ee0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x80f068]
mov ecx, dword [0x80f064]
mov edx, eax
mov dword [0x80f08c], esi
cmp eax, edx
je 0x525f10
mov ebx, dword [eax]
add eax, 8
mov dword [ecx], ebx
mov ebx, dword [eax - 4]
mov dword [ecx + 4], ebx
add ecx, 8
cmp eax, edx
jne 0x525ef7
mov eax, dword [0x80f068]
mov dword [0x80f068], ecx
mov dword [ebp - 0x34], eax
mov dword [edi + 0x58], esi
push 0x440
call fcn.0070dddb
add esp, 4
mov dword [ebp - 0x34], eax
cmp eax, esi
mov byte [ebp - 4], 6
je 0x525f40
mov ecx, eax
call fcn.00629e10
mov dword [ebp - 0x1c], eax
jmp 0x525f43
mov dword [ebp - 0x1c], esi
mov edx, dword [ebp - 0x1c]
push 0xc
mov dword [edi + 0x3c], edx
mov ebx, dword [edi + 0xc]
mov byte [ebp - 4], 0
mov esi, dword [ebx + 4]
call fcn.0070dddb
add esp, 4
mov ecx, ebx
test ebx, ebx
jne 0x525f65
mov ecx, eax
test esi, esi
mov dword [eax], ecx
jne 0x525f6d
mov esi, eax
mov dword [eax + 4], esi
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
add eax, 8
test eax, eax
je 0x525f84
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov esi, dword [edi + 0x10]
push str.Load_Model_::_Early_Model_Load_Complete
inc esi
mov dword [edi + 0x10], esi
mov dword [0x837a5c], 0
call fcn.00405d90
mov ecx, dword [ebp - 0x4c]
add esp, 4
test ecx, ecx
je 0x526003
mov al, byte [ecx - 1]
test al, al
je 0x525fca
cmp al, 0xff
je 0x525fca
dec al
pop edi
pop esi
mov byte [ecx - 1], al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
dec ecx
push ecx
call fcn.006ffa16
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x76c894
call fcn.0052f4f0
add esp, 4
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
push 1
call fcn.00420210
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret