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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x713332
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], 0
mov ecx, edi
xor bl, bl
call fcn.00405860
mov esi, eax
mov ecx, edi
mov dword [esp + 0xc], esi
call fcn.00405870
mov edi, eax
lea eax, [esp + 0x2c]
push eax
push 1
push edi
push esi
lea ecx, [esp + 0x6c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.0060b110
mov cl, byte [ebp + 0x10]
xor eax, eax
test cl, cl
mov dword [esp + 0x90], 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], fcn.0054ca30
jne 0x609d9a
mov dword [esp + 0x18], 0x54caf0
cmp edi, eax
mov dword [esp + 0x40], eax
jle 0x609e63
jmp 0x609dac
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
mov dword [esp + 0x38], eax
jle 0x609e4a
mov edi, dword [ebp + 0xc]
push eax
mov ecx, edi
call fcn.004058c0
mov ecx, dword [esp + 0x38]
mov esi, eax
push ecx
mov ecx, edi
call fcn.004058e0
mov edi, eax
mov dword [esp + 0x3c], esi
cmp esi, edi
jge 0x609e35
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x38]
push edx
call dword [esp + 0x1c]
test al, al
je 0x609e28
mov eax, dword [esp + 0x70]
mov bl, 1
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x38]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x64]
imul eax, dword [esp + 0x40]
mov ecx, dword [ecx + edx*4]
add eax, ecx
mov ecx, dword [esp + 0x3c]
add eax, ecx
mov ecx, dword [esp + 0x7c]
mov dword [ecx + eax*8], 0
mov edx, dword [esp + 0x7c]
mov dword [edx + eax*8 + 4], 0x3ff00000
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, edi
mov dword [esp + 0x3c], eax
jl 0x609ddd
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xc]
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
jl 0x609dba
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x40], eax
jl 0x609da8
test bl, bl
jne 0x609eb2
mov esi, dword [ebp + 8]
mov dword [esp + 0x1c], 1
mov dword [esi], 0
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], 2
call fcn.00556c60
lea ecx, [esp + 0x70]
mov byte [esp + 0x90], 0
call fcn.0055c2e0
mov eax, esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x14]
mov esi, 1
mov dword [esp + 0x18], esi
mov eax, dword [eax + 0x14]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp eax, edx
je 0x609ee1
mov cx, word [eax + 8]
mov eax, dword [eax]
and ecx, 0xffff
add esi, ecx
cmp eax, edx
jne 0x609ecb
mov dword [esp + 0x18], esi
mov edi, dword [ebp + 0xc]
xor bl, bl
xor esi, esi
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], esi
cmp eax, esi
jle 0x60a0bc
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, edi
call fcn.004058c0
mov edx, dword [esp + 0x38]
mov ecx, edi
push edx
mov esi, eax
call fcn.004058e0
cmp esi, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], esi
jge 0x60a0a5
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x38]
imul edx, dword [esp + 0x40]
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x3c]
lea ecx, [ecx + ecx*2]
mov esi, dword [eax + 8]
shl ecx, 2
mov eax, dword [ecx + esi]
add eax, edx
add eax, edi
mov edi, dword [esp + 0x7c]
fld qword [edi + eax*8]
fcomp qword [0x71ed18]
fnstsw ax
test ah, 0x41
jne 0x60a08d
mov ecx, dword [ecx + esi]
mov eax, dword [esp + 0x3c]
fild dword [esp + 0x18]
add edx, ecx
add edx, eax
fcom qword [edi + edx*8]
fnstsw ax
test ah, 0x41
jne 0x60a08b
fstp qword [esp + 0x24]
or esi, 0xffffffff
or edi, 0xffffffff
test esi, esi
jne 0x609f96
test edi, edi
je 0x60a024
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x50], edx
add edx, esi
add ecx, edi
test eax, eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
jl 0x60a024
cmp eax, dword [esp + 0x74]
jge 0x60a024
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x60]
call fcn.0060a330
test al, al
je 0x60a024
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x44]
mov ecx, dword [edx + 8]
mov edx, dword [esp + 0x64]
imul edx, dword [esp + 0x4c]
lea eax, [eax + eax*2]
mov ecx, dword [ecx + eax*4]
mov eax, dword [esp + 0x48]
add edx, eax
mov eax, dword [esp + 0x7c]
add edx, ecx
test esi, esi
fld qword [eax + edx*8]
je 0x60a00b
test edi, edi
je 0x60a00b
fadd qword [0x848ee8]
jmp 0x60a011
fadd qword [0x722668]
fcom qword [esp + 0x24]
fnstsw ax
test ah, 1
je 0x60a022
fstp qword [esp + 0x24]
jmp 0x60a024
fstp st(0)
inc edi
cmp edi, 1
jle 0x609f8a
inc esi
cmp esi, 1
jle 0x609f87
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x64]
imul edx, dword [esp + 0x40]
fld qword [esp + 0x24]
fsub qword [0x748f58]
mov esi, dword [ecx + 8]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
lea ecx, [ecx + ecx*2]
shl ecx, 2
mov eax, dword [ecx + esi]
add eax, edx
add eax, edi
mov edi, dword [esp + 0x7c]
fcomp qword [edi + eax*8]
fnstsw ax
test ah, 0x41
jne 0x60a08d
mov ecx, dword [ecx + esi]
mov eax, dword [esp + 0x3c]
fld qword [esp + 0x24]
add edx, ecx
mov bl, 1
add edx, eax
fstp qword [edi + edx*8]
jmp 0x60a08d
fstp st(0)
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x609f26
mov edi, dword [ebp + 0xc]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xc]
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
jl 0x609efc
xor esi, esi
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x40], eax
jl 0x609eec
test bl, bl
jne 0x609ee4
push 0x38
call fcn.00652710
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
cmp ebx, esi
je 0x60a138
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + 0x18]
mov dword [ebx], vtable.t_counted_object.0
mov dword [ebx + 4], 0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x10]
push 1
push eax
lea ecx, [ebx + 8]
push edx
mov byte [esp + 0xa0], 4
mov dword [esp + 0x30], 0xffffffff
call fcn.005e1a90
dec esi
mov dword [ebx], vtable.t_obstacle_brush_layer_map.0
mov dword [ebx + 0x34], esi
xor esi, esi
jmp 0x60a13a
xor ebx, ebx
cmp ebx, esi
mov dword [esp + 0x24], ebx
je 0x60a145
inc dword [ebx + 4]
mov byte [esp + 0x90], 5
mov dword [esp + 0x40], esi
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, esi
mov dword [esp + 0x38], eax
jle 0x60a23b
push eax
mov ecx, edi
call fcn.004058c0
mov esi, eax
mov eax, dword [esp + 0x38]
push eax
mov ecx, edi
call fcn.004058e0
mov edx, esi
cmp esi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], edx
jge 0x60a221
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x38]
or edi, 0xffffffff
mov esi, dword [ecx + 8]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x64]
imul eax, dword [esp + 0x40]
shl ecx, 2
mov esi, dword [ecx + esi]
add eax, esi
mov esi, dword [esp + 0x7c]
add eax, edx
fld qword [esi + eax*8]
mov eax, dword [esp + 0x14]
fcom qword [0x748f50]
mov eax, dword [eax + 0x14]
mov esi, dword [eax]
fnstsw ax
test ah, 0x41
jne 0x60a1ef
mov ax, word [esi + 8]
mov esi, dword [esi]
and eax, 0xffff
inc edi
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fsubp st(1)
fcom qword [0x748f50]
fnstsw ax
test ah, 0x41
je 0x60a1cc
mov esi, dword [ebx + 0x10]
mov eax, dword [ebx + 0x1c]
imul esi, dword [esp + 0x40]
fstp st(0)
mov eax, dword [eax + 8]
mov eax, dword [ecx + eax]
mov ecx, dword [ebx + 0x28]
add esi, eax
mov eax, dword [esp + 0x18]
add esi, edx
mov dword [ecx + esi*4], edi
mov edx, dword [esp + 0x3c]
inc edx
cmp edx, eax
mov dword [esp + 0x3c], edx
jl 0x60a18b
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xc]
mov edi, dword [ebp + 0xc]
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
jl 0x60a163
xor esi, esi
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x40], eax
jl 0x60a151
mov ecx, dword [ebp + 8]
cmp ebx, esi
mov dword [ecx], ebx
je 0x60a25c
inc dword [ebx + 4]
cmp ebx, esi
mov dword [esp + 0x1c], 1
mov byte [esp + 0x90], 1
je 0x60a281
mov eax, dword [ebx + 4]
dec eax
mov dword [ebx + 4], eax
jne 0x60a281
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
mov eax, dword [esp + 0x7c]
mov byte [esp + 0x90], 0
push eax
call fcn.00652870
mov eax, dword [esp + 0x74]
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov edx, dword [eax]
add esp, 4
dec edx
mov dword [eax], edx
mov eax, dword [esp + 0x70]
cmp dword [eax], esi
jne 0x60a309
test eax, eax
mov edi, eax
je 0x60a309
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
lea esi, [eax + 4]
push ecx
push edx
mov ecx, esi
call fcn.004d1a20
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 0xc]
sub ecx, ebx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
mov ecx, esi
shr eax, 0x1f
add edx, eax
push edx
push ebx
call fcn.00435290
xor eax, eax
push edi
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.00652870
add esp, 4
mov ecx, dword [esp + 0x88]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc