Function at 0x413ac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4540d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x4c]
call fcn.0041afd0
xor esi, esi
lea ecx, [esp + 0x60]
mov dword [esp + 0x84], esi
call fcn.0041b2c0
mov dword [esp + 0x48], esi
mov dword [esp + 0x74], 0x42c80000
mov dword [esp + 0x78], 6
lea eax, [esp + 0x12]
lea ecx, [esp + 0x30]
push eax
mov dword [esp + 0x88], 2
call fcn.00409960
lea ecx, [esp + 0x13]
mov byte [esp + 0x84], 5
push ecx
lea ecx, [esp + 0x28]
call fcn.00409960
mov eax, dword [esp + 0x90]
mov byte [esp + 0x84], 7
cmp eax, esi
jne 0x413b7f
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 4
call fcn.0041cb40
lea ecx, [esp + 0x30]
mov byte [esp + 0x84], 1
call fcn.0041cab0
mov dword [esp + 0x84], 8
jmp 0x413ca8
mov edx, dword [esp + 0x8c]
push str.set_repl_lod_original
push edx
call fcn.0044f9a0
mov ebp, eax
add esp, 8
cmp ebp, esi
mov dword [esp + 0x14], ebp
jne 0x413bd0
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 4
call fcn.0041cb40
lea ecx, [esp + 0x30]
mov byte [esp + 0x84], 1
call fcn.0041cab0
mov dword [esp + 0x84], 9
jmp 0x413ca8
lea eax, [esp + 0x8c]
mov bl, 0xa
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], bl
call fcn.00409960
mov edi, str.Building_LODS_r_n
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x84], 0xb
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, str.Building_LODS_r_n
push ecx
push str.Building_LODS_r_n
lea ecx, [esp + 0x20]
call fcn.00411590
mov eax, dword [0x4644f0]
mov byte [esp + 0x84], 0xc
cmp eax, esi
je 0x413c31
mov ecx, dword [esp + 0x18]
push ecx
call eax
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x84], bl
call fcn.0040a280
mov ecx, dword [esp + 0x90]
push esi
mov byte [esp + 0x88], 7
call fcn.0042fd30
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
fild qword [esp + 0x18]
push str.piece_priorities
push ebp
fstp dword [esp + 0x94]
call fcn.0044f9a0
add esp, 8
cmp eax, esi
jne 0x413cdf
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 4
call fcn.0041cb40
lea ecx, [esp + 0x30]
mov byte [esp + 0x84], 1
call fcn.0041cab0
mov dword [esp + 0x84], 0xd
push esi
push 0x465094
push esi
lea ecx, [esp + 0x6c]
mov dword [esp + 0x6c], 0x458204
call fcn.0041d380
push esi
push 0x465094
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x54], 0x4581d4
push esi
jmp 0x41416a
mov edx, dword [eax + 4]
xor edi, edi
mov ebx, 8
mov esi, dword [edx + 4]
mov eax, dword [esi]
test eax, eax
jle 0x413d5f
mov ebp, dword [sym.imp.MSVCRT.dll_atoi]
mov eax, dword [esi + 4]
mov eax, dword [eax + edi*4]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 4]
mov eax, dword [edx + 4]
mov eax, dword [eax + 4]
push eax
call ebp
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
add esp, 4
cmp eax, ecx
je 0x413d43
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.0041f460
mov eax, dword [esp + 0x3c]
add esp, 8
add eax, ebx
mov dword [esp + 0x34], eax
jmp 0x413d54
lea edx, [esp + 0x18]
push 1
push edx
push eax
lea ecx, [esp + 0x3c]
call fcn.0041e2d0
mov eax, dword [esi]
inc edi
cmp edi, eax
jl 0x413cf8
mov ebp, dword [esp + 0x14]
push str.tri__
push ebp
call fcn.0044f9a0
push str.dists
push ebp
mov esi, eax
call fcn.0044f9a0
add esp, 0x10
test esi, esi
je 0x4140cf
test eax, eax
je 0x4140cf
mov ecx, dword [esi + 4]
mov edx, dword [eax + 4]
xor esi, esi
mov edi, dword [ecx + 4]
mov ebp, dword [edx + 4]
cmp dword [edi], 0
jle 0x413e08
mov eax, dword [edi + 4]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.MSVCRT.dll_atof]
mov ecx, dword [ebp + 4]
fstp dword [esp + 0x1c]
mov eax, dword [ecx + esi*4]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.MSVCRT.dll_atof]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
fstp dword [esp + 0x24]
add esp, 8
cmp eax, ecx
je 0x413dee
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0041f460
mov eax, dword [esp + 0x30]
add esp, 8
add eax, ebx
mov dword [esp + 0x28], eax
jmp 0x413dff
lea ecx, [esp + 0x18]
push 1
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.0041e560
mov eax, dword [edi]
inc esi
cmp esi, eax
jl 0x413d9d
test eax, eax
jne 0x413e3c
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 4
call fcn.0041cb40
lea ecx, [esp + 0x30]
mov byte [esp + 0x84], 1
call fcn.0041cab0
mov dword [esp + 0x84], 0xf
jmp 0x414134
mov edi, dword [esp + 0x90]
lea edx, [esp + 0x90]
push 0x465094
push edx
mov eax, dword [edi + 0x38]
lea ecx, [esp + 0x54]
push eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x9c], 0x3f800000
call fcn.0043ebe0
mov ecx, dword [edi + 0x38]
xor eax, eax
test ecx, ecx
jle 0x413e8b
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x50]
fild dword [ecx + eax*8 + 4]
inc eax
fstp dword [edx + eax*4 - 4]
cmp eax, dword [edi + 0x38]
jl 0x413e75
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
sub ecx, eax
xor esi, esi
test ecx, 0xfffffff8
jle 0x413ee4
fld dword [eax + esi*8 + 4]
fstp dword [esp + 0x40]
fld dword [esp + 0x8c]
fmul dword [eax + esi*8]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x3c]
push 0x465094
push edx
push eax
lea ecx, [esp + 0x6c]
call fcn.0041f920
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
sub ecx, eax
inc esi
sar ecx, 3
cmp esi, ecx
jl 0x413e9f
lea edx, [esp + 0x48]
push edx
call fcn.0043b840
add esp, 4
test eax, eax
jne 0x413ffd
mov edi, str.cmd_BuildLOD_Error:_BuildLODs_failed
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
not ecx
dec ecx
lea esi, [edi + 4]
add ecx, str.cmd_BuildLOD_Error:_BuildLODs_failed
push eax
push ecx
push str.cmd_BuildLOD_Error:_BuildLODs_failed
mov ecx, esi
call fcn.00412190
lea ecx, [esp + 0x18]
mov dword [edi], 1
call fcn.0041a9e0
mov ecx, str.cmd_BuildLOD
mov byte [esp + 0x84], 0x10
test ecx, ecx
je 0x413f4e
push ecx
jmp 0x413f53
push str.error
lea ecx, [esp + 0x1c]
call fcn.0041aa50
mov eax, dword [0x4644f0]
test eax, eax
je 0x413f83
mov edx, dword [esp + 0x18]
push edx
call eax
mov eax, dword [esi]
push eax
call dword [0x4644f0]
push 0x4610ac
call dword [0x4644f0]
add esp, 0xc
mov ecx, dword [0x4644ec]
mov esi, dword [esi]
test ecx, ecx
jne 0x413f95
mov ecx, dword [sym.imp.MSVCIRT.dll_class_ostream_withassign_cout]
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::operator___char_const__]
push 0x4610a8
push eax
call esi
mov ecx, eax
call esi
mov ecx, eax
call esi
push eax
call dword [sym.imp.MSVCIRT.dll_class_ostream____cdecl_endl_class_ostream__]
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x84], 7
call fcn.00408340
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 4
call fcn.0041cb40
lea ecx, [esp + 0x30]
mov byte [esp + 0x84], 1
call fcn.0041cab0
mov dword [esp + 0x84], 0x11
jmp 0x414134
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov eax, dword [edi + 0x38]
sub ebx, esi
sar ebx, 3
xor esi, esi
test eax, eax
jbe 0x414086
mov ebp, 1
cmp ebx, ebp
jbe 0x41407e
mov dword [esp + 0x90], 0x58
mov ecx, dword [edi + 0x34]
mov eax, dword [ecx + esi*4]
cmp ebp, dword [eax + 8]
jae 0x414040
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x90]
add edx, eax
jmp 0x414042
xor edx, edx
mov eax, 4
mov ecx, dword [edi + 0x34]
mov ecx, dword [ecx + esi*4]
cmp dword [ecx + 8], 0
jbe 0x414058
mov ecx, dword [ecx + 4]
jmp 0x41405a
xor ecx, ecx
mov ecx, dword [ecx + eax]
mov dword [eax + edx], ecx
add eax, 4
cmp eax, 0x14
jl 0x414047
mov ecx, dword [esp + 0x90]
inc ebp
add ecx, 0x58
cmp ebp, ebx
mov dword [esp + 0x90], ecx
jb 0x414027
mov eax, dword [edi + 0x38]
inc esi
cmp esi, eax
jb 0x414013
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 4
call fcn.0041cb40
lea ecx, [esp + 0x30]
mov byte [esp + 0x84], 1
call fcn.0041cab0
lea ecx, [esp + 0x48]
mov dword [esp + 0x84], 0xffffffff
call fcn.00414190
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
add esp, 0x78
ret
mov edx, dword [esp + 0x94]
mov edi, str.set_repl_lod_original_nodes_tri__or_dists_are_missing__incomplete_node
or ecx, 0xffffffff
xor eax, eax
mov dword [edx], 1
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x90]
not ecx
dec ecx
push eax
add ecx, str.set_repl_lod_original_nodes_tri__or_dists_are_missing__incomplete_node
push ecx
push str.set_repl_lod_original_nodes_tri__or_dists_are_missing__incomplete_node
lea ecx, [edx + 4]
call fcn.00412190
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 4
call fcn.0041cb40
lea ecx, [esp + 0x30]
mov byte [esp + 0x84], 1
call fcn.0041cab0
mov dword [esp + 0x84], 0xe
push 0
push 0x465094
push 0
lea ecx, [esp + 0x6c]
mov dword [esp + 0x6c], 0x458204
call fcn.0041d380
push 0
push 0x465094
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x54], 0x4581d4
push 0
lea ecx, [esp + 0x58]
call fcn.0041cf50
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret